So i’m working a game where zombies(cubes) follow the player around and do damage when they collide with the player. I can get the enemies to follow the player just fine but i can’t manage a code to damage and destroy the zombies(tried with raycast) or that will cause damage to the player when the zombies collide with it. Maybe tags with an OnCollisionEnter might work. Not really sure. I’d really appreciate some help.
I found this and it’s exactly what I’m going for : http://www.twiik.net/content/twiikashoot