That isn't really my problem. I have a method that provides the camera to lock onto the player.
I also have a method that allows me to have some speed lag so that it isn't constantly locked to the player.
My problem is that when the object hits these odd angle values like 359 and 2 it finds the new camera angle to be something like 256. I have tried getting the negatives of the angles and using them as a method to get the true angle average, but it isn't working.
So if you have some code examples, or perhaps know of a method to get averaging of a circular number set (i.e. angles) that would solve my problem.
Thanks anyways, though.
I also have a method that allows me to have some speed lag so that it isn't constantly locked to the player.
My problem is that when the object hits these odd angle values like 359 and 2 it finds the new camera angle to be something like 256. I have tried getting the negatives of the angles and using them as a method to get the true angle average, but it isn't working.
So if you have some code examples, or perhaps know of a method to get averaging of a circular number set (i.e. angles) that would solve my problem.
Thanks anyways, though.