Hi Brent,
Yes, I would like the objects in the group to remain unified in position/relation so that they behave as a single body. However, I am still not sure exactly how to write the code to apply the multi-element body to one of my objects, while adding the rest of the child objects of my display group as elements to that body I am apply physics to. The objects that I am trying to unify using display groups from the code I provided before are:
tile
tile.letterText
tile.pointValue
I could not find any examples or documentation online that shows specifically how to construct multi-element bodies from separate display objects. But, if I try applying the multi-element body to the ‘tile’ object, and then add the rest of these objects as elements to the ‘tile’ object multi-element body, the below code is what I come up with:
physics.addBody( tile, 'dynamic', {shape = tile}, {shape = tile.letterText}, {shape = tile.pointValue }, { friction = 0, bounce = 0, density = 0, radius = .5\*tileWidth } )
However, this code does not look right to me, and the grouped objects do not behave as a unified, single bodies in the simulator. Am I missing something?