GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

adds an mWrap and mWrapF method #2158

Closed Azaezel closed 6 years ago

Azaezel commented 6 years ago

for cycling values to within a given range.

examples of usage would be say, keeping a rotation within 360 degrees, or hitting a tile boundary and resetting the offset