Answers for "rigidbody prevent rotation"

C#
0

hwo to prevent rotation after hitting an object in unity

private void OnCollisionEnter(Collision collision)
{
	GetComponent<RigidBody>().freezeRotation = true;
}
Posted by: Guest on June-19-2020

C# Answers by Framework

Browse Popular Code Answers by Language