Version: 2022.2

Rigidbody.automaticInertiaTensor

切换到手册
public bool automaticInertiaTensor ;

描述

Whether or not to calculate the inertia tensor automatically.

If enabled, the inertia tensor is calculated automatically based on the settings of attached Colliders. If no colliders are present, the tensor has a default value of Vector3(1,1,1).