Does the physics.addBody() only work with Circles and Rectangles? Or is it possible to physics.addBody() on vector shapes or sprites or with masks or something?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
It works with more than just circles and rectangles. To be more specific,
The full explanation, along with examples including a rectangle, circle, and polygon, can be found here. |
|||
|
|
|
If you want an irregular physics object, you have to specify the x and y coordinates of the physic body. Complicated, but possible. Or you can use a third-party tool like PhysicsEditor. |
|||
|
|