For the record, this is the Answers page.
So now the turret is able to track its target and shoot it with the script I've written, which I've made it to allow me to set via the Inspector:
- The ammo/shell prefab
- Maximum firing range
- Reload time
- Amount of shots to begin with
- Rotation damping factor for the turret
- And the maximum and minimum elevation angles for the turret
I think the last thing I need to do now is attempt to calculate the lead for the target. I found a script the other day meant for that purpose, hopefully I'll have luck figuring it out and including it quickly. I'll post a new webplayer with my next log.
No comments:
Post a Comment