Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Rigidbody.ResetInertiaTensor

Switch to Manual
public void ResetInertiaTensor();

Description

Reset the inertia tensor value and rotation.

Computes the inertia tensor, and the inertia tensor rotation from the colliders attached to this rigidbody and stores it. After calling this function, the inertia tensor and tensor rotation will be updated automatically after any modification of the rigidbody.

Did you find this page useful? Please give it a rating: