inertiaTensorRotation
The rotation of the inertia tensor.
阅读时间1 分钟最后更新于 1 个月前
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; }}