Game Development Community

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 ?

#1
06/14/2005 (1:35 pm)
Thanks for moving the post, but I did actually answer your question in the other thread...

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.
#2
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.
#3
06/14/2005 (2:01 pm)
This is the only place ive ever seen the particulars of the on-methods explained. its not totally comprehensive, but its a start.
#4
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 !