[ODE] vector force

elekis elekis at gmail.com
Fri Feb 2 10:14:25 MST 2007


hi all,

noob in ode, I try to make a attraction between 2 object. (witch consist of
gluing a force on the second object.)

the only function I found is dBodyAddForce (Box,a,b,c);.
but we have to calculate the a,b,c.
is there any function like that putForce(BoxA,boxB,10) who put a force from
A to B with 10 unit???

what I mean is if

A(xa,yb,zc)// a point
B(xa,yb,zc)// a other point
force = 10 units // the force I wanna applicate on B in the direction of A;

I don't see how to calculate a, b, c  for dBodyAddForce (B,a,b,c);  without
sinus and cosinus.(maybe my physics is a little old)
is someone can help me?


thanks a+++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mooshika.org/pipermail/ode/attachments/20070202/bbe2d62c/attachment.htm


More information about the ODE mailing list