dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.93k stars 244 forks source link

Documentation outdated #408

Closed OriginLive closed 1 year ago

OriginLive commented 1 year ago

Hi, in https://rapier.rs/docs/user_guides/bevy_plugin/rigid_bodies/#mass-properties

The examples do not work, as MassProperties definitely doesn't implement Component in the latest version. I guess there should be unit tests on the code that's in documentation atleast, so that you know it compiles.

image

gyzerok commented 1 year ago

Do you happen to know what should be used instead?

sebcrozet commented 1 year ago

The docs is now updated. The correct component is AdditionalMassProperties.