dimforge / rapier

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

Calculate world center of mass from local com in debug renderer #527

Closed Aceeri closed 5 months ago

Aceeri commented 9 months ago

Kinematic bodies that were moved after creation don't have their world_com mass properties re-calculated. This isn't a complete solution since I think ideally the rb.mrprops.world_com should be updated in that case, but fixes the debug renderer for now.

sebcrozet commented 5 months ago

Thanks!