How to create twisting camera

Blitz3D Forums/Blitz3D Programming/How to create twisting camera

Shifty Geezer(Posted 2004) [#1]
I'm wanting the camera to follow an entity and twist according to the mouse movements. As the target is rotating, I've created a pivot 'rostrum' and position where the target entity is.

I create a camera from an isometric POV with rostrum as its parent. Then I point rostrum to camera and camera to rostrum so they're both pointing along the same line.

I can rotate around the X axis and Y axis, but can't twist the camera clockwise/anticlockwise. Also, trying to make sense of pitch and yaw is a nightmare!

Anyone got any pointers for sensbile camera control, so I can tilt the camera up and down, turn it left and right, and rotate it clockwise or anticlockwise?


TomToad(Posted 2004) [#2]
TurnEntity pitch#,yaw#,roll#; for relative rotation\
RotateEntity pitch#,yaw#,roll#; for absolute rotation

The roll# parameter rotates the camera in a clockwise, counterclockwise.