Game Development Community

Callback for when collision stops?

by Matthew Hoesterey · in Torque X 2D · 07/05/2010 (10:34 am) · 4 replies

anyone know if there is a callback for when a particular collision type ends? For example player stops colliding with ground?

I'm looking for a cleaner way to get around a few edge cases I have with players leaving the ground.

Thanks guys.

#1
07/05/2010 (3:56 pm)
If you're using the PSK then actors have an OnGround property, platforms have an ActorLeft callback, and actors also have an InAir state.
#2
07/05/2010 (7:21 pm)
I'm not using the PSK. I was hoping that their was a callback for OnCollisionEnd er something. I'll check out what the PSKs doing perhaps I can change my OnGround property to work similarly. :).

Thanks again.
#3
07/05/2010 (8:28 pm)
You can put a trigger on top of your object, if you want, it has a OnLeave status.
#4
07/07/2010 (4:37 pm)
Thanks for the info Olivier. I may just do that :).