You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my previous tests, this should have the normal and contact point on the rectangle, but the normal is pointing right though it is on the left of the rectangle. In addition, the penetration depth is a whopping 1.73, which shouldn't be possible because neither shape is that long.
The text was updated successfully, but these errors were encountered:
And the culprit is a call to triple_product in SimplexProcessor::reduce_to_closest_feature that returns a vector that is approximately vec2(-8.88e-16, 0.0). The x value is about 4 times f64::EPSILON, which makes the ulps_eq! call comparing it to the zero vector to return false. Maybe we should figure out how bad it can get and relax the comparison?
If we define a rectangle and a complex polygon along with their transforms as such:
and then do an intersection test as such:
the resulting contact is:
From my previous tests, this should have the normal and contact point on the rectangle, but the normal is pointing right though it is on the left of the rectangle. In addition, the penetration depth is a whopping 1.73, which shouldn't be possible because neither shape is that long.
The text was updated successfully, but these errors were encountered: