We all love a bit of combat. I don’t know if you read one of my first blogs about this project but I mentioned about having a number of things to shoot at, well I have been working on something to shoot at. Yep that’s right a turret. And what comes with a turret, something to shoot back at you right? I have designed a simply turret with a few nice textures and have given it a big gun to help immobilize you the player, at of course a time penalty. This though has lead me on to power-ups like a shield etc. that could protect you from being shot. But I’ll cross that bridge when I come to it. For now here it the mean red bad boy!
I have attached a nice little script to the turret so that It tracks the player movement when the player enters the radius of the turret. It works by using a big sphere collider as the radius, then turret will engage the player by rotating the body to face the player on the Z axis and the turret guns with move to shot the player on the Y axis only. This is in aid to simulate a robot style drone feel, locking the movements to given pivot. The turret shares the same firing mechanism as the space ship, except with a different bullet and damage properties.








