Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

I need scripting/ physics help

Discussion in 'Physics' started by Carterthepro, Apr 25, 2017.

  1. Carterthepro

    Carterthepro

    Joined:
    Apr 25, 2017
    Posts:
    14
    Hello does anybody know how to make a script that when i die it freezes me for a second and then unfreezes me using a rigidbody thanks in Java Script
     
    Last edited: Apr 25, 2017
  2. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    That depends on if you want to free the user input or simply freeze the rigidbody in the game physics.
    If it's just the game physics, you can set rigidbody constraints. And freeze whichever position/rotation you'd like.
     
  3. Carterthepro

    Carterthepro

    Joined:
    Apr 25, 2017
    Posts:
    14
    i cant find out how to do rigidbody.constraints
     
  4. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712