Relative rotation or absolue rotation

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
LF

Relative rotation or absolue rotation

Post by LF »

Hello

i have a world localised at (0,0,0).
i have a cube localised at (0,0,0).

i translate the cube to (0,0,100).


when i rotate the cube to the Y axis,i would like he turn arrond
the point (0,0,0) and not arrond the point((0,0,100).


sorry for my bad english.
Guest

Re: Relative rotation or absolue rotation

Post by Guest »

LF wrote:Hello

i have a world localised at (0,0,0).
i have a cube localised at (0,0,0).

i translate the cube to (0,0,100).


when i rotate the cube to the Y axis,i would like he turn arrond
the point (0,0,0) and not arrond the point((0,0,100).
1) add the cube to a dummy scene node
2) set new position of the cube (0,0,100)
3) rotate the dummy scene node instead of the cube
LF

Post by LF »

Thanx,

it work fine.
Thanx for your help
Post Reply