Crate phys_inertia

Crate phys_inertia 

Source

Modules§

math
shape
Geometric shape implementations for 3D physics simulations.
transformer

Structs§

CompoundUnit
Inertia
The inertia properties of a shape.

Traits§

ComputeInertia
Implement this trait to provide the inertia computation ability.

Functions§

capsule
Compute the diagonal inertia of a capsule in principal axis space with mass = 1.
compound
Calculate the mass and mass-normalized inertia of compound shapes
cube
Compute the diagonal inertia of a cube in principal axis space with mass = 1.
cylinder
Compute the diagonal inertia of a cylinder in principal axis space with mass = 1.
diagonalize_inertia
Given the low triangle part of a symmetric inertia matrix, which is column-major, then diagonalize it.
mesh
Compute the inertia tensor of a mesh with mass = 1.
sphere
Compute the diagonal inertia of a solid sphere in principal axis space with mass = 1.
tetrahedron
Compute the inertia tensor of a tetrahedron with mass = 1.