DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
|
Static Public Member Functions | |
static float | ClampAngle (float angle, float min, float max) |
Clamps an angle between the given values. More... | |
|
static |
Clamps an angle between the given values.
Taken from wydoidoit's code on Unity Answers http://answers.unity3d.com/questions/659932/how-do-i-clamp-my-rotation.html