Game Development Community

RC3: docs issue with onCollision()

by Alex Rice · in Torque Game Builder · 06/16/2006 (11:18 pm) · 1 replies

This is not a bug because it's technically correct in TGB Referece.pdf. But if you look at the t2dSceneObject callbacks, the 1st parameter is always %this, except for onCollision().
Quote:onCollision(%srcObject, %dstObject, %srcRef, %dstRef, %time, %normal,
%contacts, %points)
should be changed to this for clarity:
Quote:onCollision(%this, %dstObject, %srcRef, %dstRef, %time, %normal,
%contacts, %points)
Technically it doesn't matter though.

#1
06/17/2006 (8:39 am)
Would be good to either change it or explain the difference for people new to TorqueScript.