Raul Posted April 1, 2010 Share Posted April 1, 2010 I am trying to "translate" the fpsshooter.lua script to c++ code. I need this to create a nice FPS control + weapon + light... My first "milestone" is how to limit the X angle (because right now you can rise up and down your head up to 360 degrees) In cPlayer.h I have: float CameraPitch; float CameraYaw; In the cpp::UpdatePlayer, I have: CameraPitch = Min(CameraPitch,90); But I receive this error message: 'Min' : 3 overloads have similar conversions Quote i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64 rvlgames.com - my games RVL Games Facebook Page, YouTube Channel Blitzmax Link to comment Share on other sites More sharing options...
Canardia Posted April 1, 2010 Share Posted April 1, 2010 camerapitch=Clamp(camerapitch,-89,89); Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Raul Posted April 1, 2010 Author Share Posted April 1, 2010 thanks Quote i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64 rvlgames.com - my games RVL Games Facebook Page, YouTube Channel Blitzmax Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.