Rigidbody.inertiaTensorRotation
Declaration
public Quaternion inertiaTensorRotation;Описание
Вращение тензора инерции.
Если вы не задаете вращение тензора инерции из скрипта, оно будет рассчитано автоматически из всех коллайдеров, присоединенных к rigidbody.
// Resets the inertia tensor to be the coordinate system of the transform
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void ResetTensor() { GetComponent<Rigidbody>().inertiaTensorRotation = Quaternion.identity; } }