oncollision event called twice
by Joao Cardoso · in Torque X 2D · 04/27/2010 (3:28 am) · 0 replies
Hi All,
during my debug sessions I notice that the oncollision method is called twice once before preupdated of physics and again after the postupdate of physics.
Why should I get two collision events when my actor only collides once with my static object (I’m using the PKS kit)? I haven’t any physics update on the postupdate meaning that I don’t expect any additional collision.
Is it really necessary to call the oncollision event twice for every single object?
Thanks,
João
during my debug sessions I notice that the oncollision method is called twice once before preupdated of physics and again after the postupdate of physics.
Why should I get two collision events when my actor only collides once with my static object (I’m using the PKS kit)? I haven’t any physics update on the postupdate meaning that I don’t expect any additional collision.
Is it really necessary to call the oncollision event twice for every single object?
Thanks,
João
About the author