createFlyCircleAnimator how to set angle of move?

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
dwe-ax
Posts: 5
Joined: Mon Nov 27, 2006 7:15 pm

createFlyCircleAnimator how to set angle of move?

Post by dwe-ax »

Hi :)
This is my first post here, so I'd like to say "hello everyone" :)
At first, sorry for my poor english, but it isn't my native language. However I'm still learning, and make a progresses.
So. I've been learning Irrlicht for a little period of time, and I have a problem . I don't know how to set an angle of rotation for node with animation set by createFlyCircleAnimator function. If I use this function, my node flies around the Y axis, but I want to move it around with for instance 45 degress to the horizon. Can I do it simple? Thanks a lot for your answers :)
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

Post by Anteater »

Hello, and welcome to the forums! Actually, I don't think it's possible to rotate the circle animator in that way, but it would be nice if it was possible. One workaround is to use a followSpline animator, and manually set the vectors of each point to make the node move that way. Don't worry, it's not as complicated as it sounds. There is an example of a followSpline animator in the Irrlicht tech demo code.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The last parameter to createFlyCircleAnimator() is the up vector for the circle. If you specify core::vector3df(.707f, .707f, 0.f) the circle will be on its side.

Travis
dwe-ax
Posts: 5
Joined: Mon Nov 27, 2006 7:15 pm

Post by dwe-ax »

Thanks guys :). Every tip is helpful. I had downloaded Irrlicht SDK 1.2 and then I saw, that new parameter to the function was added.
Post Reply