Function avian3d::prepare::update_mass_properties

source ·
pub fn update_mass_properties(
    bodies: Query<'_, '_, (Entity, &RigidBody, Ref<'_, Mass>, &mut InverseMass, Ref<'_, Inertia>, &mut InverseInertia), Or<(Changed<Mass>, Changed<Inertia>)>>
)
Expand description

Updates each body’s InverseMass and InverseInertia whenever Mass or Inertia are changed.