Getting applied force from a rope

DannyChapman
Posts: 84
Joined: Sun Jan 07, 2007 4:29 pm
Location: Oxford, England

Getting applied force from a rope

Post by DannyChapman »

I have a soft body rope - one end is attached to the world, the other to a dynamic object (this is for control-line plane simulation, if that means anything to anybody!). I need to find the tension in the rope (or alternatively/equivalently the force that is being applied to the dynamic object) - can anybody point me to how I can do that?

It's for this: http://youtu.be/tORhAE4eoJk.

Thanks - Danny
DannyChapman
Posts: 84
Joined: Sun Jan 07, 2007 4:29 pm
Location: Oxford, England

Re: Getting applied force from a rope

Post by DannyChapman »

Well, I have a solution - adding a btVector3 to the Anchor to accumulate the impulses (well - I'm more interested in forces as when I read it I don't know what the timestep was):

a.m_appliedForce += impulse/dt;

and then obviously it needs to get zeroed in a couple of places. If there's a better way, let me know!