physics.addBody change x/y position of circle body?

**resolved**

“The default circular body can’t be offset from the center, so you’ll have to draw a “circle” using a polygon shape (effectively an octagon, since the maximum number of sides is 8), or for finer collision sensing, assemble two half-circles side by side (thus 16 total sides, which would be fine in nearly every case).” – Brent Sorrentino

I’ve checked the documentation, and it states that rectangular and circular physics bodies are centered on the object they are attached to, when created. What I don’t see in the parameters is if the x/y position of the physics body can be offset of the center, if an shape must be made.

The example is I have an airplane, but I only want the front of it to have the physics body.  A circle there would work perfect.

thanks.

Hi @tysonkuhn,

The default circular body can’t be offset from the center, so you’ll have to draw a “circle” using a polygon shape (effectively an octagon, since the maximum number of sides is 8), or for finer collision sensing, assemble two half-circles side by side (thus 16 total sides, which would be fine in nearly every case).

Best regards,

Brent

Thank you for the clarification.

Hi @tysonkuhn,

The default circular body can’t be offset from the center, so you’ll have to draw a “circle” using a polygon shape (effectively an octagon, since the maximum number of sides is 8), or for finer collision sensing, assemble two half-circles side by side (thus 16 total sides, which would be fine in nearly every case).

Best regards,

Brent

Thank you for the clarification.