I have a gun turret which rotates around it’s center point to follow the player. It does so by checking the angle between player and turret each frame and adjusting accordingly.
Initially I need the turret to be dormant and when the player is within a certain distance it activates and rotates to follow the player. However, I can’t quite figure out how to transition between the dormant-active stage and the general rotation to aim at the player.
Has anyone tried to do anything like this before and how did you go about it?
I’m not asking for anyone to code my solution, just for some ideas on approach.
I’ve already got the turret working, shooting, recoiling, it’s draggable and so on, so I just need a hand with smoothly aquiring the player as a target, then switching to the general aiming function.
Dan [import]uid: 67933 topic_id: 24596 reply_id: 324596[/import]
