$ ./guess_the_languageGame Dev
Game Dev · medium · #81

What does clamping a value do?

  1. Keeps it within a min and a max
  2. Rounds it to a whole number
  3. Wraps it around past the max
  4. Doubles it on every frame
Clamp forces a value to stay inside the given range.
Play Game Dev ▸