PDA

View Full Version : Strange Ball Joint behaviour


mkmatlock
11-04-2010, 10:20 AM
I am using a ball joint to simulate a long chain with a heavy load attached, swinging from a ceiling.

The user can move this chain up and down using an instrument panel, and the ball joint is used to simulate the slow sway of the load as it is moved. To add a bit of perturbation, I generate a small force in a random direction (parallel to ground plane), and apply it to the load.

However, the load tends to stop swinging in midair, sometimes at quite unrealistic, obvious, and comical angles.

I am using a ball joint attached to the world, and to a long chain object, with a limit on swing of 20 degrees on all axes.

I am worried that one of the reasons the ball joint is not functioning correctly is that, in order to move the load up and down when the user uses the control panel, I have to detach the chain from the ball joint, move the chain, then reattach it. Perhaps there is a better way to do this? Calling 'move' without detaching the load doesn't allow it to move beyond a very small amount.

Jeff
11-04-2010, 04:49 PM
Can you provide some sample code replicating this that I can run?