Version: 5.4
public Quaternion inertiaTensorRotation ;

説明

慣性テンソルの回転角度

慣性テンソル回転をスクリプトから設定しない場合、リジッドボディにアタッチされているすべてのコライダーから自動的に計算されます。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void ResetTensor() { GetComponent<Rigidbody>().inertiaTensorRotation = Quaternion.identity; } }