dimforge / rapier

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

Debug renderer: does not contain mesh data for shapeCasts #536

Closed GregorAltstaedt closed 5 months ago

GregorAltstaedt commented 9 months ago

Hello Dimforge Team,

The debug renderer is very valuable but sadly shapeCasts (I think raycasts as well) are nor yet included in the world.debugRender() as far as i can see.

Is this correct, or am I missing something?

Thank you in advance

sebcrozet commented 5 months ago

This is correct. The debug-renderer reflects the instantaneous state of the simulation. A shape-cast is a one-time geometric query, so it does not "exist" in the physics world as a permanent "object". So, it is out of the scope of the debug-renderer since it isn’t part of the physics world state.