Relative movement of a scene node
Posted: Fri Dec 28, 2007 9:42 pm
sorry for my n00b question but thats what this forum is for right..?
so my question is:
is it possible to move a scene node relative to its rotation?
e.g. moving a node 3 units forward, not along the x/y/z axis, but the direction the node is facing
because when i use setPosition() i can only specify world coordinates...
and one more quick question
apparently there is no function that returns the mouse movement during the last frame... so i should probably write it myself storing the mouses coordinates every frame and subtracting the new coordinates... do i have to use position2d or vector2d for storing them?
so my question is:
is it possible to move a scene node relative to its rotation?
e.g. moving a node 3 units forward, not along the x/y/z axis, but the direction the node is facing
because when i use setPosition() i can only specify world coordinates...
and one more quick question
apparently there is no function that returns the mouse movement during the last frame... so i should probably write it myself storing the mouses coordinates every frame and subtracting the new coordinates... do i have to use position2d or vector2d for storing them?