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

Clicking on an object in the scene (client-side)

Clicking on an object within the 3D world with the mouse is a common action in many games. Torque 3D allows for the processing of this action to occur on either the client or server side, depending on what is appropriate. Handling this on the client side is useful when the act of clicking on an object doesn't need to be authorized by the server, or we don't need all of the server-side gameplay information on an object in order to work with it. In this recipe, we will look into clicking on an object from the client and processing it on the client side.

Getting ready

We will be making TorqueScript changes in a project based on the Torque 3D Full template, and try them out using the Empty Terrain level. ...

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