简体   繁体   中英

andEngine Box2D DrawingShapes

Currently making a scene where users click to add shaped to the scene but I can't find a way to draw shapes such as circles and triangles so that they can be used with Box2D. Please can someone point me in the right direction?

Just use the static PhysicsFactory.create and see what method you can use. CreateBoxBody, createLineBody and much more.

You can do better shapes using chains. Read some net guides if you want. But for complicated shapes there are generators which take your png file and create proper shape which you can use in your code.

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