Quantcast
Channel: Answers for "Better to have bullet check for collision or objects check for bullet?"
Viewing all articles
Browse latest Browse all 6

Answer by TonyLi

$
0
0
Like @noodle! said, it depends. That said, make the bullet check. :-) If your bullet is moving really fast, even continuous collision might not register. Oliver at Mixamo did a good presentation on this: http://www.youtube.com/watch?v=rS97SG2fbNI -- he uses a script that does some additional checking and also has a cool trace effect. OnCollisionEnter/OnTriggerEnter give you the collider that intersected. Then again, if your bullet is really, really fast, don't bother with a collider at all. Just run a raycast from the gun.

Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images

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