Answers for "unity rigidbody constraints unfreeze"

3

rigidbody2d unfreeze position

public Rigidbody2D rb;

void Start()
{
	rb.constraints = RigidbodyConstraints2D.None;
}
Posted by: Guest on July-16-2020
5

unity rigidbody constraints

m_Rigidbody = GetComponent<Rigidbody>();
        //This locks the RigidBody so that it does not move or rotate in the Z axis.
        m_Rigidbody.constraints = RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotationZ;
Posted by: Guest on January-29-2020
1

unity rigidbody constraints unfreeze

rb.constraints = RigidbodyConstraints.FreezePositionX | ~RigidbodyConstraints.FreezePositionY | RigidbodyConstraints.FreezePositionZ;
Posted by: Guest on December-07-2020

Code answers related to "unity rigidbody constraints unfreeze"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language