Question

Is there a known and standard algorithm for calculating the time of impact between a circle and a box? The only information I can find are tests determining whether a circle and a box are already colliding. I can't find anything that would allow me to have the projected vector of a ball's movement be used to calculate if a collision will occur.

Is time of impact not used for anything except raycasting?

All entities velocities, orientations, and rotations are static in the particular context I am in.

Was it helpful?

Solution

After asking around, the best way to do this seems to be computing the Minkowski difference between the two objects, and then raycasting from the origin of the circle, and calculating the time of impact (if it exists) with the new shape.

This has been described pretty thoroughly here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top