This question was
closed Feb 21, 2017 at 09:23 PM by
DominikHeyn for the following reason:
Question is off-topic or not relevant
Question by
DominikHeyn · Oct 24, 2016 at 12:03 PM ·
ontriggerenteroncollisionenter
OnTriggerEnter happens too late
Hey folks,
I'm firing a bomb into a chosen direction. The Bomb has a script on it which includes the OnTriggerEnter() function. So when the bomb enters a collider it happens 2 out of 3 times that the bomb passes the object and explodes within or at the back of the object instead on impact.
I tried increasing the radius of the bomb's collider but it didn't fix the problem. And yes, the collider has IsTrigger checked.
The Unity documentation says "The Colliders involved are not guaranteed to be at the point of initial contact." So its better to use OnCollisionEnter() in this case?
Thank you in advance.
Comment