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,should be changed to this for clarity:
%contacts, %points)
Quote:onCollision(%this, %dstObject, %srcRef, %dstRef, %time, %normal,Technically it doesn't matter though.
%contacts, %points)
About the author
Torque Owner Jason McIntosh