Game Development Community

Confused at some Global Vars

by Larry Jennings II · in Torque 3D Professional · 07/09/2011 (5:37 pm) · 2 replies

So i'm trying to get started with T3D, and i'm looking through the code at a blank template; and i must say i'm a little confused at something.

When you create the blank template, it generates some functions for movement binded to the keys, like moveLeft, moveRight, etc

In these functions, the global variables used like $mvLeftAction or $mvRightAction; i cant seem to find where else these are used in the code. I do a search in all project files, but find nothing actually showing it being used.

Can anybody help me out?

#1
07/09/2011 (5:42 pm)
These are defined in the engine (C++ side). Look in moveManager.cpp, starting with MoveManager::init().
#2
07/10/2011 (7:10 am)
Thanks Chris.