3rd Person Camera damping

Klin

Member
Is there a build in function to get a camera damping effect in 3rd person?

If not, would you advise using the spring system for that?

Thank you for help!
 
By "damping" do you mean a smoothed camera type effect? If so you could easily make a custom viewtype (or just edit an existing one) to interpolate its Rotate value between current rotation and the target rotation. E.g. in Combat.Rotate, instead of just returning base.Rotate, you could do something like:

C#:
            Quaternion rotation = base.Rotate(horizontalMovement, verticalMovement, immediatePosition);
            return Quaternion.Slerp(base.Transform.rotation, rotation, 0.1f);

You could use a spring here too to get more precise control and other parameters.
 
Top