Kinematic collision distance CAN be negative

Hey,

This isn’t really a problem, so to speak, but it appears that something might be either wrong with the kinematic collision or the documentation. It states in the Physics Manual that the distance value returned from a contact_point_response collision message will always be positive.

It appears this is not the case; the distance can in-fact return negative values.

I’m going to assume this is just the manual being incorrect? Not a big issue, but I thought I’d mention it anyway.

3 Likes

That should not happen, the manual is being correct. What type of shapes and collision objects were involved in that contact point?

Kinematic box colliding with a kinematic sphere. Sphere was stationary, the box is the one moving. This is occurring often, easily reproducible for me.

2 Likes

Hmm, I did a quick test and was unable to reproduce it. Do you see the negative distance in both the box and sphere or just one of them? Does it matter how the box is moving or simple linear movement towards the sphere?

Negative distance was coming from the sphere (diameter of 500). Doesn’t appear to matter on the movement, seemed to always occur when moving away from the sphere, just before contact is broken, rather than toward it.

1 Like