Polygon collision problems

7 views
Skip to first unread message

Muxeu

unread,
Sep 25, 2011, 7:12:46 AM9/25/11
to glaze Engine
Hi ! Thx for great engine. But i have a problem.

Sometimes triangle polygons don't work properly. This problem occurs
when the triangle falls on object exactly the same length and exactly
at same position.

Image:
http://demiart.ru/forum/uploads8/post-880438-1316948255.jpg

Left triangle fall through rectangle. Right works perfectly. Bodies
has same material.

Triangle code:
return [ new Vector2D(-size_x, size_y), new Vector2D(size_x, size_y),
new Vector2D(0, -size_y) ];

Reply all
Reply to author
Forward
0 new messages