Rigidbody.inertiaTensorRotation

Cambiar al Manual
public Quaternion inertiaTensorRotation ;

Descripción

La rotación del tensor de inercia.

Si no se establece la rotación del tensor de inercia a partir de un script, se calculará automáticamente de todos los colliders unidos al 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; } }