Continuous collision dynamic bodies not 100% reliable?

Hai,

Im trying to detect collisions between two bodies, but it seems to be failing ~5% of the time. My objects are:

A Ball - dynamic rigid body
A Hoop sensor - dynamic rigid body with IsSensor set to true

The goal is to drag the ball into the sensor.To achieve the dragging motion, I am setting the velocity of the ball each frame so it reaches the desired position in the next frame. It is possible to each reasonably high velocities when dragging, so I have set 'IsBullet' on both the ball and the hoop sensor to true.

However, this still doesn't seem to be enough. around 5% of the time, the ball passes straight through the hoop without receiving a collision event through the box2dcontactlistener interface.

Does setting the velocity each frame on the ball cause the IsBullet flag to no longer behave robustly?

Thanks in advance.

Mash
If both bodies are moving, there may be some inaccuracy. If there are other bodies around (of any kind), there can be inaccuracies.

However, a larger problem is that Box2D doesn't include sensors in continuous collision. Instead, you should perform ray casts each time step to see if your object crosses a sensor.

Original thread: https://box2d.org/forum/viewtopic.php?t=6911