You are not logged in.
Pages: 1
Hi, I'm trying to create an animation of an object by programming it, and i need the formulas (one for X and one for Y) to move the object from point A (X1,Y1) to point B (X2,Y2), i already tried to work the distance but apparently didn't work.
________________________________
A (X1,Y1) ? B(X2,Y2)
? (X3,Y3) >>> X3 = Formula?
Y3 = Formula?
Thanks in advance
Offline
i know the answer already... i will live it here for anybody that needs it...
to start only one function is needed,
so:
Y3 = ((Y1-Y2)/(X1-X2))*(X3-X1)+Y1
just need to give the X3 to the function, math will do the rest....
thank you!
Offline
Pages: 1