How to check when objects are no longer colliding?
by Richard Skala · in iTorque 2D · 03/02/2011 (4:23 pm) · 3 replies
I have a situation when Object A collides with Object B, collision is turned off Object B to avoid repeated collision callbacks, since something happens specifically on collision. I need to turn collision back on Object B, but not until Object A is sufficiently far enough away from Object B, so they can possibly collide again.
How can I check if the collision of Object A no longer intersects with the collision of Object B?
How can I check if the collision of Object A no longer intersects with the collision of Object B?
About the author
Founded in 2009, Pixel Vandals Inc. is focused on bringing fun, fresh, and new ideas to the iPhone. www.pixelvandals.com www.pixelvandals.com/vineking
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
To do so, just ensure to fire a schedule, DO NOT USE THE UPDATE CALLBACK ;)
Otherwise you could save all the effort as the update callback on average will be a hell a lot worse than just leaving the collision as is ;)