Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

rigidbody2d freeze position

public Rigidbody2D rb;

void Start()
{
	rb.constraints = RigidbodyConstraints2D.FreezeAll;
}
 
PREVIOUS NEXT
Tagged: #freeze #position
ADD COMMENT
Topic
Name
8+4 =