Help with angles / relative position
#3

Thakyou very much; they are only rotating on Z axis, so, your formulae should do the trick.
Then, to recapitulate; set the main object to Z angle.
Find the X, Y, angle of the relative object and subtract them.
For example: x = 2, y = 2, a=20; then calculate the distance from 0,0 to 2,2... sqrt(2^2 + 2^2) = sqrt( = 2.82
And then the final position will be:
ObjectX[o][0]=floatadd(BasisPosX,2.82*floatsin(Angle,degrees));
ObjectY[o][0]=floatadd(BasisPosY,2.82*floatcos(Angle,degrees));
ObjectA = floatadd(BasisAngle, 20)

Am I right?

Thanks!!!
Reply


Messages In This Thread
Help with angles / relative position - by Siralos - 03.09.2012, 07:00
Re: Help with angles / relative position - by Babul - 03.09.2012, 07:15
Respuesta: Help with angles / relative position - by Siralos - 03.09.2012, 07:26
Re: Help with angles / relative position - by Babul - 03.09.2012, 07:53
Re: Help with angles / relative position - by MP2 - 03.09.2012, 09:01

Forum Jump:


Users browsing this thread: 1 Guest(s)