Switching of the camera target?

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
Weinma

Switching of the camera target?

Post by Weinma »

Hello!

I am new to Irrlicht and i hope this is not a too silly question.
I just played around with irllicht and its tutorials and coded a little app
which just loads a Mesh representing a lansdscape.
Now I wanted to fly over this landscape with my camera always looking down but the camera always looks to its target.
Is it possible to turn the camera target of? or do i have to animate the target to.

I am using the normal camera (not FPS or Maya).

Thanks for help!
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Each frame, call setTarget(pos)

So, if you have a camera called "camera" and a node called "node".

Code: Select all

camera->setTarget(node->getPosition());
Crud, how do I do this again?
Post Reply