Notifications
Clear all
[Closed] animate and rotation controller
Nov 21, 2006 5:24 pm
Hi,
Can someone explain me this behave ?
When I do
with animate on at time t myDummy.rotation = angleaxis angle [x,y,z]
Max creates a key for the rotation controller at time t, ok… but it ALSO creates a position controller at this time, which I do not want… Doing this with myDummy.pos only creates me a position controller.
What is the best way to assign rotation keys with angleAxis values ? Do I have to change the default Euler XYZ controller for a TCB rotation ?
3 Replies
Nov 21, 2006 5:24 pm
Use the ROTATE() method instead.
with animate on at time 10 rotate $ (angleaxis 30 [0,0,1])
Nov 21, 2006 5:24 pm
Yes… but no
If my object orientation is zero, it’s equivalent, but if my object is already rotated it is not.
I don’t want to rotate my object relatively to its previous position, but I want to place it in a defined orientation.
Nov 21, 2006 5:24 pm
Well, if it may help, I found out how to rotate, in my case by the absolute value:
rotAtual = ($.rotation as eulerAngles).y --Will return the Y axis' rotation
rotTotal = rotAtual - rotValue --Object's rotation - the angle I want it to rotate to
rotate $ (angleaxis rotTotal [0,1,0]) --Rotate on Y axis