Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

It works with more than just circles and rectangles. To be more specific,

[physics.addBody()] Allows you to turn any Corona display object into a simulated physical object with one line of code, including the assignment of physical properties.

The full explanation, along with examples including a rectangle, circle, and polygon, can be found here.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.