View Full Version : reaction controllers

10 October 2005, 07:34 PM
I am having trouble setting up reaction controllers in max
Specifically in passing reactions states to rotation reactor controllers.
With a position reactor, I can do the following...

setReactionState obj.position.controller 2 [0.0, 0.0, 10.0]

this would set the second reaction state to 10 in the z-axis
However, when I try similar code for rotation reactors, it dont work...

setReactionState obj.rotation.controller 2 [0.0, 0.0, 90.0]

The help files mention something about quaternions, but I haven't got a clue what they are or how I calculate them.

Anyone any ideas?


10 October 2005, 08:13 PM
hi andy,
i am from ireland also,
ok on to the problem

you are inputing eulerangles - max is looking for quat values (this is a method for determining rotation) you can translate for values to quat with maxscript values eulertoquat function to find out the quat value you are looking for.

eg.. open the listenter (f11) and input
eulertoquat (eulerangles 0 0 90)
and press enter
output = (quat 0 0 -0.707107 0.707107)

if you need more help or wanna chat i am on msn


CGTalk Moderation
10 October 2005, 08:13 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.