Quantcast
Channel: Answers for "Why won't my bullets detect a collision and be destroyed?..."
Viewing all articles
Browse latest Browse all 8

Answer by JonManatee

$
0
0

I don't see any problems with your code, other than that you may not want to have Destroy(gameObject, lifespan) in Start instead of Update

Some simple troubleshooting to help you along:

  1. If there are compile errors in any of your scripts, Unity may revert to an older version until the bugs are fixed (the version where they don't disappear).
  2. Make sure your scripts are attached to a parent of the renderer
  3. Make sure that you have a collider attached to the GameObject with the scripts on it.
  4. Make sure the objects you want it to collide with have colliders

Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>