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.
createFollowSplineAnimator....
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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.
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way