combining and breaking physics bodies under certain conditions.

Hey.

I'm making a skateboarding game, and have a player character, (currently a simple 30 x 30 rectangle) which is dynamic and reacts to terrain, speed boosts, etc.

What I need is for the board and character to be seperate phsics objects, which are pinned together and behave, (rotate, speed up etc) as one whilst the skateboard is in collision with the terrain. If the player character himself is in contact with the ground, the objects are un-linked and bounce about independently.

Can anyone reccomend the easiest way to pin the 2 objects together then break the link under whatever condition. I'm just looking for general advice at this stage as everything else is working fine.

Thanks in advance.

Dan

you probably need to use joints

views:1455 update:2011/10/11 8:57:46
corona forums © 2003-2011