Clamp the magnitude of the vector between two values
v = [3, 4, 0] // length 5 result = raylib.Vector3ClampValue(v, 0, 2) print result // scaled so magnitude is 2
There was an error while loading. Please reload this page.