- Home /
Best Way to Handle Projectile Collision?
I'm having trouble figuring out the best way to handle projectile collisions in my 2D top down shooter. As far as I understand it, there are two main ways to handle shooting: raycasts and rigidbody prefab instantiation. Raycasts are instant and accurate with fast projectiles, but rigidbody prefabs can be slower, can have sprites as projectiles, and can be collided with from any direction. However, if projectiles are too fast, collision can be dodgy and broken, even if continuous collision detection is on. Now, my game will have some bullet hell elements, so sometimes the player will collide with projectiles from the side, which ruins raycasting. How do I go about projectile collisions?
Thanks.
Your answer
![](https://koobas.hobune.stream/wayback/20220612194111im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Trigger with object only from top side. 0 Answers
Unity 2D C# - no collision inside an object 0 Answers
Creating an Authoritative Client and Server 1 Answer
problem with collisions with tag 3 Answers