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