Skip to main content

Edit hidden variables of Rigidbody

Custom Rigidbody inspector exposing hidden variables

Change the center of mass and other hidden variables of your Rigidbody directly from the editor! It allows you to modify the parameters below for a specific Rigidbody:

  • Center of mass (by default calculated at the center of the bounds)
  • Solver iterations (accuracy of the physics calculation)
  • Sleep threshold (used to get more stable bodies)
  • Max depenetration velocity (used to move bodies out of a colliding state)

Demonstration​

Moving the center of mass of a Rigidbody from the editor

Here you can see how easy it is to change the center of mass of a Rigidbody from the editor.

info

The code is not available for now. Contact me if you are interested.

See also​