Answers for "unity rigidbody constraints"

C#
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
0

how o free contraint in unity from script

m_Rigidbody.constraints = RigidbodyConstraints.None;
Posted by: Guest on December-01-2020

Code answers related to "unity rigidbody constraints"

C# Answers by Framework

Browse Popular Code Answers by Language