Search the Community
Showing results for tags 'springs'.
Found 1 result
I have a car similar to this demo...it uses P2 physics, CollisionGroup, springs and constraints to simulate the car body and two wheels. http://www.inkfood.com/create-a-car-with-phaser/ Question is how can I make the car "explode" or fall apart when needed? e.g. Collision with object or velocity is too fast, etc. I've tried to remove the springs or constraints but the car flies off the screen unpredictably. Optimally I would like to remove the spring/constraints and just have the 3 car pieces just tumble on the ground disconnected, or I could add random forces to the pieces to simulate a small explosion.