Answers for "hwo to prevent rotation after hitting an object in unity"

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

Code answers related to "hwo to prevent rotation after hitting an object in unity"

C# Answers by Framework

Browse Popular Code Answers by Language