- Home /
Question by
CarbonTech Software · Jun 29, 2010 at 12:09 AM ·
colliderterraintriggerrocket
Late Rocket Explosion
Hello, the problem is that my rockets which are using a constant force and have a trigger collider are exploding INTO the terrain mountains (created in Unity). I am instantiating the explosions as soon as anything comes in contact with the collider via "OnTriggerEnter", but the explosions are sort of embedded into the mountain so you only see a part of the explosion.
Does anyone have any ideas as to how to make the rockets explode more or less where they hit on time?
Thanks in advance, CarbonTech Software Admin
Comment
Best Answer
Answer by spinaljack · Jun 29, 2010 at 12:30 AM
You can try some of these:
- Increase the number of physics calculations per frame by decreasing Fixed Time under settings
- Make the collider of the missile longer than the actual model so it detects collisions sooner
- Instantiate the explosion slightly higher than the impact point if the collider is a terrain
- Make the collider not a trigger and the missile shouldn't penetrate the terrain and use OnCollisionEnter instead