PDA

View Full Version : Rotating an objectect around arbitrary vector by an angle


Jon-Huhn
04-08-2007, 02:47 PM
I'm sure this issue has been dealt with a million times on this forum, but honestly, I don't have enough math skills to spot the solution from all the posts I combed through.

Given an arbitrary vector representing an axis in world space, and an arbitrary angle, how do i rotate that object around that axis by that angle?

Thanks for your help (and your patience :) )

ofer_z
04-08-2007, 04:49 PM
try this (from the MXS help):
rotate <node> <angle> <axis_point3> -- mapped -- angle in degrees

hOpe this helps,
o

Jon-Huhn
04-09-2007, 09:51 PM
Perfect. Thanks so much. I guess I didn't find it in the MXS docs cause it was hidden under the section, "Node Common Properties, Operators, and Methods".

CGTalk Moderation
04-09-2007, 09:51 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.