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
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