Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to freeze x and y position in rb2d with code unity

            rb.constraints = RigidbodyConstraints2D.FreezePositionX;
            rb.constraints = RigidbodyConstraints2D.FreezePositionY;
 
PREVIOUS NEXT
Tagged: #freeze #position #code #unity
ADD COMMENT
Topic
Name
4+6 =