This content has been marked as final.
Show 3 replies
-
-
2. Re: Vector question
Production Monkey Mar 9, 2013 6:00 AM (in response to Minds Eye)Multiplying the vector by a rotated transform may provide the results you are looking for.
on test
v = vector(0, 0, -9.81)
t = transform()
t.rotate(1, 1, 0)
put v
-- rotate in X, Y directions
repeat with cnt = 1 to 10
v = t * v
put v
end repeat
-- rotate back
t.rotate(-2, -2, 0) -- reverse rotation
repeat with cnt = 1 to 10
v = t * v
put v
end repeat
end test
-
3. Re: Vector question
Minds Eye Mar 15, 2013 3:41 AM (in response to Production Monkey)Perfect!
Thank you very much.
Trevor

