O'Reilly logo

Torque 3D Game Development Cookbook by David Wyand

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Camera and Mouse Controls

In this chapter we will cover:

  • Locking and hiding the mouse while the right mouse button is down
  • Clicking on an object in the scene (client-side)
  • Clicking on an object in the scene (server-side)
  • Picking up an item in the scene while the mouse is locked and hidden
  • Changing the camera's view and control mode
  • Giving the camera a smooth movement
  • Having the camera follow a path

Introduction

Torque 3D provides complete access to how the mouse functions—from the standard input that any application provides, to tracking relative movements while the mouse pointer is hidden. This allows for its use in a variety of games, from a first-person shooter to a role-playing game. In this chapter, we discuss setting up the mouse beyond ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required