Application.LoadLevel OnTriggerEnter when shooting a bullet.

Trying to figure out how to shoot a trigger box that causes the next level to load. It works fine when I enter the box with the player controller but not when I shoot it.

This is my script to load the next level when the bullet collides

Any help would be appreciated!

8923-destroycomputer.jpg

And this script is my actual gun shooting the bullet.

The problem may be due to the speed of the bullets. To deal with bullets (or other fast moving objects) you typically want to set the Rigidbody.collisionDetectionMode setting to “Continuous” or “ContinuousDynamic” to deal with this. The following page explains this: