Collission is detected very late. onTriggerEnter is working very late (i.e 5 Seconds late)
I have an Aircraft and a Rock, They both are colliding with each other but the problem is that, 5 seconds after the collision they explode. They both have the collider and a rigidbody attached.
When i change the speed of rock the delay decreases to 1-2 seconds but that's too fast to see the rock coming. Please Help. I am stuck.
Answer by Highwalker · Apr 17, 2016 at 06:18 PM
Why'd you accept your own answer as the best answer? O.o lol. Anyway, what's your explosion object like? It might just be taking too long to instantiate the object. Try pooling it instead. So having the object in the scene disabled, and then enabling it whenever you need it. But instead of destroying it when it's done, simply disable it. There's lots of YouTube videos on pooling.
That was a mistake. Lol. :-P I got it sorted out by changing the whole scenario of the game. But that pooling thing would have been the best choice. Thank you for your reply man, that really helped in many other things.
Your answer
![](https://koobas.hobune.stream/wayback/20220612074930im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Destroy object on hover? 1 Answer
Moving an Object Using a Trigger 0 Answers
OnTriggerEnter Message Panel trouble! 0 Answers
OnTriggerEnter and OnTriggerExit called twice despite checking it 1 Answer