Clockwise triangle collider doesn't work #368
Labels
bug
Something isn't working
collision detection
Relates to the broad phase, narrow phase or collision APIs
Versions
bevy 0.13.2
bevy_xpbd_2d 0.4.2
Description
It seems that the collider of a clockwise ordered
Triangle2D
doesn't register collisions with other polygons, such as triangles, rectangles, etc.Example
Below code spawns a triangle with vertices in the clockwise direction and a square. The two shapes are overlapping at spawn, so that should be printed, and shapes should be moved to be disjoint. Neither of these happen.
However, if I swap the triangle vertices so that they are ordered anticlockwise, everything works as expected - I get a message about entities overlapping at spawn, and the shapes are flung out of view very quickly.
The text was updated successfully, but these errors were encountered: