Aligning an entity to my verlet construct.

Blitz3D Forums/Blitz3D Programming/Aligning an entity to my verlet construct.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

To Gurus who have implemented Thomas Jakobsen's Verlet Integrator Character Physics:

I'm currently searching for the (C2) Sqrt Approximation with respect to particle masses. My code simply does not work:
delta=x2-x1
delta=delta*restlength^2/((dotproduct(delta,delta)*(invmass1+invmass2))+restlength^2)-(invmass1+invmass2) <-- trouble starts here
x1=x1-delta*invmass1
x2=x2+delta*invmass2
Your assistance is valued. thanx