Game Development Community

dev|Pro Game Development Curriculum
TGB - PolyTool

This code block modifies the existing "onMouseDragged" function within "levelBuilderPolyTool.cc". The current function will not allow a point to be moved outside of the bounds of the object. However, it prevents movement of the point when the mouse leaves the bounds. This block just makes sure the point does not leave the bounds of the object, but still allows you to move the point. This is very handy if you need to have a point that lies on the bounds. The current tool makes it difficult for you to do and this one makes it easy.

Author Phillip O'Shea Date 10/18/2007 (2:08 pm) Comment 1 comments

worldToLocalPoint() and localToWorldPoint()

a pair of script functions for converting from worldspace to object space and back.

Author Orion Elenzil Date 10/18/2007 (2:07 pm) Comment 1 comments

Disabling physics on out of scope bots/mobs

One of the most CPU intensive parts of a server with high bot counts (MMORPG) is player physics. With this update, bots will not process their physics if a client controlled player is not withing scope.

Author Peter Simard Date 10/18/2007 (2:07 pm) Comment 9 comments

Door Object Part 2

This is an update to Joshua Jewell's door resource, which adds a door object into Torque that can open and close by rotating or by sliding vertically or horizontally.

Author Jeff Loveless Date 10/18/2007 (2:06 pm) Comment 7 comments

Cast Ray Use Button

This is a ray casting use button. When you press the 'e' key it casts a ray a certain distance ( determined by the variable %range ) and depending on what it hits it allows you to do whatever you want for that object. For instance mount a vehicle, or pop up a menu or interface. I have used it in tge 1.5 & tgea with no problems.

Author mb Date 10/18/2007 (2:06 pm) Comment 15 comments

SimSet getIndex console method

This console method returns the position of an object within a SimSet.

Author Daniel Buckmaster Date 10/18/2007 (2:05 pm) Comment 2 comments

TorqueScript Edit and Continue

Code changes to the TelenetDebugger to enable 'Edit and Continue' functionality in Torsion.

Author Tom Spilman Date 10/17/2007 (12:17 pm) Comment 4 comments

Generic Event System for Torque

An Unreal-like event/trigger system where objects have an event and a tag, and when an object is triggered or "event'd", all objects with a tag that matches the triggered object's event have their ::onEvent() method called (in script). If you've used UnrealEd you'll know exactly what I'm talking about. If not, just read the article and you will. Has 1001 uses!

Author Dan Keller Date 10/08/2007 (10:25 am) Comment 7 comments

fileDelete script function

fileDelete function for TorqueScript

Author Martin Schultz Date 10/08/2007 (10:25 am) Comment 1 comments

Avoid Player collision with mounted objects

When an object is mounted on a player, the player collides with whe mounted object causing it to stop movement. This resource is a quick fix to remove this problem.

Author Guimo Date 10/08/2007 (10:24 am) Comment 3 comments