Page 1 of 1

custom camera

Posted: Tue Jun 20, 2006 2:06 am
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

Posted: Thu Jun 22, 2006 4:21 am
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!

Posted: Thu Jun 22, 2006 5:47 pm
by choonti
Thanks Agar for info

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