Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Box 2D surprise — Gideros Forum

Box 2D surprise

plamenplamen Member
edited December 2012 in Bugs and issues
Today i decided to replace sprite:hitTestPoint () with more interesting box2d feature - b2.World:queryAABB(lowerx, lowery, upperx, uppery) and here the surprise i got. For point A /look at the diagram/ i have correct return - a nil but for point B i have incorrect return - the fixture next to the point. Black lines are hint where incorrect results happen. b2 query is done over a box not the actual fixture. Any suggestions or i did something wrong?

Likes: zer0flag

Tagged:
+1 -1 (+1 / -0 )Share on Facebook

Comments

Sign In or Register to comment.