inertiaTensorRotation
The rotation of the inertia tensor.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public Quaternion inertiaTensorRotation { get; set; }
Remarks
If you don't set inertia tensor rotation from a script it will be calculated automatically from all colliders attached to the rigidbody.
Examples
// Resets the inertia tensor to be the coordinate system of the transformusing UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ void ResetTensor() { GetComponent<Rigidbody>().inertiaTensorRotation = Quaternion.identity; }}