简体   繁体   中英

andengine polygon body and box2d collision

I recently changed my bodies from rectangle to polygons and got a weird bug and I can't figure it out why its happening. When my "player" body touch another body - with a negative angle he just stack on it.

My player X velocity is always constant 5

when I'm switching the body back to rectangle it working fine

在此处输入图片说明

Does any one fimiliar with this bug? or have any idea what can cause it?

Found a bug in andengine:

When I put 3 point in the same button line this will cause the bug I write above:

To fix that you need to make sure that on evry line on the poligon there are only 2 points!

Works fine now :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM