Functions
by Gary Blake · in Torque Game Engine · 06/14/2005 (1:20 pm) · 4 replies
Where can I read about the parameters for functions like ::onCollision(%this, %obj, %col). I am trying to determine how these members are triggered and through what base object? Is ther any documentation for what ::on_______________ functions exist in the engine and what parameters are used with them ?
About the author
#2
ANd I get an Object "o" does not exist message if I try to spawn this character from script.
06/14/2005 (1:48 pm)
I have an AIPlayer based character with classname "MyTurtle" and datablock "Turtle". I created a MyTurtle::onCollision() function. What triggers the function to fire ? I know it a collision, but where is the code that is polling for collisions and hwo does it recognize my specific version.ANd I get an Object "o" does not exist message if I try to spawn this character from script.
#4
FYI
I see alot of chatter on swimming, water etc. with players getting stuck etc etc
Any easy fix is to set water density to 0. It works !
06/14/2005 (2:06 pm)
Thanks..................I'll peruse. FYI
I see alot of chatter on swimming, water etc. with players getting stuck etc etc
Any easy fix is to set water density to 0. It works !
Torque 3D Owner Stephen Zepp
A more generalized answer is that many of the functions are hooked directly into the code base (and are described in the dOxygen documentation, as well as the source code itself), while many others are simply part of the object's script methods and functions. You can read those functions directly out of your demo directory.