adding multiple objects/polygons to a single physics body.

I’m making a skateboarding game and so far have been using a simple box to represent the skater. I’m now at the stage where I need to have both the player and skateboard as seperate objects which move and behave as one.

The reason for this is two-fold. When the board collides with the terrain it slides around with no problem, but when the skater hits the ground it’s game over. At the point the skater hits the ground I’d like to break the bond between the 2 objects so they move independantly.

I understand there are some serious problems with joint implementation in Corona at the moment, and have had no success with welds and/or pivots. The joints just stretch around and it doesn’t work.

I saw a file someone made where they had two polygon objects added to the same physics body, but I can’t find it again! I need to achieve the same thing with a *.png for the board, and a spritesheet for the skater.

Can anyone offer any assistance/point me in the right direction please? [import]uid: 67933 topic_id: 15988 reply_id: 315988[/import]

Here you go :slight_smile:

http://developer.anscamobile.com/reference/index/physicsaddbody [import]uid: 84637 topic_id: 15988 reply_id: 59409[/import]