Help Building Body -- Can't Get Joints Working how I Want
Posted: Sun Apr 10, 2011 11:20 am
So I'm working on my first iPhone/iPad app for a client, it's a simple paper doll house, nothing too fancy. We want to give the dolls a ragdoll-esque feel to them when they're picked up, so we need to build the body out of several physics parts.
Being new to Chipmunk/physics simulation in general, I'm having a really hard time figuring out what joints to use, and how to use them. At the moment I've just got the head and torso, joined together with a pin joint. When you grab one piece and move the body around, they stay 'connected' with the joint, but the joint has too much play on it; the pieces visually come apart and take a few seconds to get back to where they should be.
I've been looking around for a decent example of how more complex objects are built from cpBodies, but most of the example code I'm finding is just for simple objects like balls and boxes :/
Can anyone help me?
Being new to Chipmunk/physics simulation in general, I'm having a really hard time figuring out what joints to use, and how to use them. At the moment I've just got the head and torso, joined together with a pin joint. When you grab one piece and move the body around, they stay 'connected' with the joint, but the joint has too much play on it; the pieces visually come apart and take a few seconds to get back to where they should be.
I've been looking around for a decent example of how more complex objects are built from cpBodies, but most of the example code I'm finding is just for simple objects like balls and boxes :/
Can anyone help me?