Answers for "how o free contraint in unity from script"

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
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 "how o free contraint in unity from script"

C# Answers by Framework

Browse Popular Code Answers by Language