Game Development Community

OnCollision sending empty information [please move this to Kart Kit forum]

by Diego Santos Leao - GameBlox Studio · in Torque Game Builder · 12/03/2009 (1:46 pm) · 2 replies

Hi guys, I'm having some problems with the OnCollision callback on TGB Kart Kit.

When I use the onCollision method of a t2dSceneObject...

function wallCollision::onCollision(%this, %object, %srcRef, %dstRef, %time, %normal, %contacts, %points)

...the properties of it (%srcRef, %dstRef, %time, %normal, %contacts and %points) are empty.

Anybody have had this problem?

Other problems:
  • All resolve collisions of TGB (clamp, sticky) are having the same behavior.
  • The onCollision method is beeing called without any collision.

Any answer will be useful!!
Thanks!

#1
12/04/2009 (8:57 pm)
Did you make sure to turn on collisions for the object you are tying that function to?
#2
12/04/2009 (9:30 pm)
Yes, I did... And sorry, this should have been posted on TGB Kart Kit forum, as it is a modified version of TGB... Could a moderator move this thread there, please?