How to: rotate camera with mouse on all axis

Blitz3D Forums/Blitz3D Programming/How to: rotate camera with mouse on all axis

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

;********************************************************************************
Function orbit_cam()
hor_rot=(hor_rot - (mxs*.5) ) ; get the mouse x and y speed,... adjust sensitivity by half
ver_rot=(ver_rot + (mys*.5) )
RotateEntity campiv_h,0,hor_rot,0 ; update the new camera pivot rotations
RotateEntity campiv_v,ver_rot,0,0
End Function


mxs and mys is mouseXspeed and mouseYspeed respectively


enjoy..