Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity rigidbody freeze rotation y z

rigidbody.constraints = RigidbodyConstraints.FreezeRotationY | RigidbodyConstraints.FreezeRotationZ;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unity #rigidbody #freeze #rotation
ADD COMMENT
Topic
Name
8+2 =