Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (10 sloc) 364 Bytes



Interpolates circularly between either two numbers or Vector3 objects by a given value.

This method corrects rotations going the long way around.

float updatedRotationX = CandyCoded.Math.Clerp(currentRotationX, newRotationX, 1);
Vector3 updatedRotation = CandyCoded.Math.Clerp(currentRotation, newRotation, 1);
You can’t perform that action at this time.