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:
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*invmass2Your assistance is valued. thanx