createFollowSplineAnimator....

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
chemi
Posts: 10
Joined: Wed Mar 14, 2007 5:57 pm

createFollowSplineAnimator....

Post by chemi »

Dear Sirs.
I am working with the function "createFollowSplineAnimator" to make a virtual walk as in the demo. I would like to know if it is possible to change the position of the VRP (target) while I am moving the cam, to get differents views of more VRP points.
Many thanks for your help. Best regards.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

There's no direct built-in method, but a good suggestion (from JP, naturally) was to create an invisible scene node, attach it to another spline animator, and have the camera look at its position. You'll have to call setTarget() every frame, but that's not too onerous.

For bonus credits, extent ICameraSceneNode to add a setTarget(ISceneNode* target); method, and have the camera update its own look position every frame. ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply