Also use std::clamp() and MathUtils.clamp() in as many places as possible in place of custom clamp functions or if statements.