Camera movement?

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
Elven programmer

Camera movement?

Post by Elven programmer »

I attached my camera to follow a scene node that walks across a quake level
but when it goes a little far the camera starts pointing at the sky! Is there any reason or does she only want to pray? :shock:
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

The position of the camera is changed according to the parent node, but the target is not. Each game loop you will have to update the camera's target (eg do camera->setTarget(parent->getPosition())).
Post Reply