...in a top down 'bullet hell' shooting game.
At the moment, the projectiles that my player fires are capsules with a collider(is trigger) and a rigid body(set to is kinematic/ignore gravity). I use a trigger event to destroy the projectile as it hits a wall (the walls are static mesh with mesh collider).
This is working okay (frame rate a little choppy) but I was wondering if there was a better way?
I tried to use a Collision event but I couldn't get it to work. I've been told OnCollision is a better way to do it.
Can someone explain how I can get this to work. There is another thread similar to what I am asking but after many attempts I cannot get it to work.
If someone could send me a working scene using the CollisionEvent I would be very grateful
Thanks for any help.
Mark