Answers for "how to freeze position on rigidbody with script in unity"

C#
2

rigidbody2d freeze position

public Rigidbody2D rb;

void Start()
{
	rb.constraints = RigidbodyConstraints2D.FreezeAll;
}
Posted by: Guest on July-16-2020

Code answers related to "how to freeze position on rigidbody with script in unity"

C# Answers by Framework

Browse Popular Code Answers by Language