rapier icon indicating copy to clipboard operation
rapier copied to clipboard

Missing docs: sensors

Open emilk opened this issue 4 years ago • 1 comments

It seems like sensors doesn't contribute any mass to the bodies they are attached to. This tripped me up, as I don't see it mentioned anywhere in https://www.rapier.rs/docs/user_guides/rust/event_handling_and_sensors nor in https://docs.rs/rapier3d/0.5.0/rapier3d/geometry/struct.ColliderBuilder.html#method.sensor.

emilk avatar Feb 17 '21 09:02 emilk

The linked method's docs now include the line:

Sensors will have a default density of zero, but if you call Self::mass_properties you can assign a mass to a sensor.

Should this be closed?

Ralith avatar Jul 18 '21 01:07 Ralith

Sensors now contribute to the rigid-body mass too, for consistency with non-sensor colliders.

sebcrozet avatar Mar 23 '24 10:03 sebcrozet