I have some imageGroups that form rectangular areas. I want those same rectangles to serve as static physics bodies. Since these are rectangles, I thought that I would be able to just write the addBody call without specifying a shape and have the outline of the body fit the imageGroup’s rectangle automatically. However, when I set the drawMode to “hybrid” to help to figure out why things weren’t working as expected, I discovered that the rectangular shape of the physics body is the right size, but it is centered about the top left corner of the imageGroup rather than its center.
I tried to setReferencePoint to display.centerReferencePoint in the imageGroup and a few related ideas, and none of them helped. Am I missing a straightforward way to get the physics body to match the imageGroup’s bounds, or am I going to have to resort to creating custom shapes for all such imageGroups?
Thank you in advance for any help you can provide this rather puzzled newbie. [import]uid: 129551 topic_id: 30355 reply_id: 330355[/import]