Version: 5.5

Rigidbody.inertiaTensor

Switch to Manual
public Vector3 inertiaTensor ;

Description

Диагональный тензор инерции массы относительно центра массы.

The inertia tensor is rotated by the inertiaTensorRotation. If you don't set intertia tensor from a script it will be calculated automatically from all colliders attached to the rigidbody. You can reset the inertia tensor to the automatically computed value by calling Rigidbody.ResetInertiaTensor.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public Vector3 tensor; public Rigidbody rb; void Start() { rb = GetComponent<Rigidbody>(); rb.inertiaTensor = tensor; } }