Answers for "Unity stop 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
0

unity stop object from rotating

rigidbody.freezeRotation = true;
Posted by: Guest on February-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language