Controls whether physics will change the rotation of the object.
// Freeze the rotation rigidbody.freezeRotation = true;
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { rigidbody.freezeRotation = true; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: rigidbody.freezeRotation = true