custom camera

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
choonti
Posts: 3
Joined: Tue Jun 20, 2006 2:00 am
Contact:

custom camera

Post by choonti »

I want to change the default camera behaviour. I want to use left and right keys for turning left and right respectively instead of strafe. How to go for it.

Kindly help
Agar
Posts: 22
Joined: Wed May 03, 2006 7:14 pm
Location: France
Contact:

Post by Agar »

Create a "normal" camera node (created with "addCameraSceneNode()", not "addCameraSceneNodeFPS()") and read input from the keyboard (left/right keys, or customized ones) to move the camera target, hence indirectly rotating the camera.

You won't have an easy time implementing this (getting correct target position for desired camera angle is gonna be a tough one) but I don't think there is another way to do it unless you want to edit the engine.

Good luck!
World of Ideas : an Irrlicht-powered versus fighting game
choonti
Posts: 3
Joined: Tue Jun 20, 2006 2:00 am
Contact:

Post by choonti »

Thanks Agar for info

I'll try as told by you. "addCameraSceneNode"
Post Reply