Game Development Community

IT2D from 1.4 to 1.5.1 Trigger BUG (Update)

by Edoardo · in iTorque 2D · 06/22/2011 (3:53 am) · 1 replies

Build: 1.4 / 1.4.1 / 1.5 beta 1

Platform: all devices

Target: Stand Alone , and On Device

(what is the bug)
Issue: A trigger with FULL or POLYGON collision detection don't maintain the onStay state if the object entered has the CIRCLE collider.
When a object enter into a trigger area... the onLeave callback method is called.

P.S. This BUG problem on CIRCLE collision doesn't exist the onLeave callback is called from the engine when the object was exited from trigger area.

Steps to Repeat:
1. Run TGB editor.
2. create a simple trigger with Full or Polygon collision detection
3. create a object out and far from the trigger box and activate the physics and the CIRCLE collisions.
4. set the object velocity in the direction of the trigger.
5. When the object will enter in contact with the border of the trigger the engine will call first the onEnter and after (when the object is into trigger area) the onLeave callbacks.

#1
09/25/2011 (7:54 am)
Yes I have noticed this problem too! Only circle mode works for triggers' onStay callback! This has caused some very unfortunate problems for my project.