dimforge / rapier

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

Get CCD point of impact #548

Open ImVexed opened 7 months ago

ImVexed commented 7 months ago

Hello!

I'm using rapier in Bevy and am curious if I can get the location of impact out of a rigid body that is using CCD?

From what I can tell from looking at the CCD solver, the actual collision point based on the TOI is never exposed to the CollisionEvent. And in my use case I have relatively high velocity entities that may collide with each other, and it's hard to get their point of impact. outside of just taking their position transforms before the next velocity step.