Game Development Community

Trigger collision

by Martin Kaspar · in Torque Game Builder · 11/13/2010 (4:58 pm) · 1 replies

Hello,
I have 2D tilemap and player. On tiles I defined collisions. Player uses physics so all works ok. For doors I use triggers. But I have problem that if I turn on collision on triggers and trigger is near door or wall with collision it pushes player toward door or wall and it jump back or through. I would like to turn off collision on triggers, but then it dont launch onEnter or OnLeave callback. Is it there any solution?

#1
11/14/2010 (7:37 am)
I solved it. I created second object and mounted it to player. This object has collision but physics is disabled. It is in same layer as triggers. For player I ignored layer with triggers and this detector. All works now.