Posted: 18th Mar 2004 21:40
I thought i wouls add this piece of code because when i first started i realised wait a mo my camera is going all the way around and back agen, obv this poses a problem for a first person shooter as (unless of course it is an exorcist shooter) peoples heads cant do a 360 degree spin. so this is for those people who cant be bothered to write their own.

NB i tried looking for another persons code which did this but it neva worked so i ended up writing my own

ENJOY


Aj
Posted: 18th Mar 2004 21:41
will be adding it to the code base as well
Posted: 19th Mar 2004 10:48
If its greater than 90, it has to be greater than 0. If its less than 270, it has to be less than 360.
+ Code Snippet
Rem stops the camera looking too far up or down
if CameraAngleX# > 90 and CameraAngleX# < 200
   CameraAngleX# = 90
Else
   if CameraAngleX# < 270 and CameraAngleX# > 200
      CameraAngleX# = 270
   Endif
Endif