How about Gravity?

Instead of disabling the mesh renderer, drop this in your StartCrashSequence() { GetComponent().useGravity = true; } combined with about 3f loadDelay, you can watch the ship explode and lose player control and plummet to the planet surface, and then slide across some trees before ultimately the rails camera goes to far or the level reloads.

2 Likes

Welcome to you and great tip!

That was kinda what I did in mine. I think it makes more sense design-wise if you’ve got a low-speed plane instead of a spaceship.
My OnCollisionEnter looks like this:

  1. Disable the player controls
  2. Disable the animation track
  3. Play the explosion
  4. Enable the gravity on the RigidBody
  5. Invoke the level reload.

Also, replying to you made me look at my code and realize I had a variable I wasn’t doing anything meaningful with. So thanks for having the same idea as me and making me look at my code :smiley:

Privacy & Terms