Tech Off Post

Single Post Permalink

View Thread: Discuss the Beginning Game Development series on Coding 4 Fun
  • User profile image

    I need to add "bank" (aka "roll") control to the camera, in addition to the heading and pitch control already implemented in Camera.cs (BattleTank2005 3, 4 & 5). This would rotate the camera view around the x axis.  I assume this will require factoring a _bank value, say -90 to +90, into the MoveCameraPosition() and Render() methods.

    Can anyone provide tips on the easiest way to add banking control to the existing code?

    Any help would be appreciated!