Unity 6.3
0 онлайн 94 гостей 3 в системе
Вход

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; } }