Hi,
I’m trying to clamp a vector3, meaning clamping each individual value, and I’m reading contracting things on the internet.
I’ve tried various things but nothing works.
And I know I could use some convoluted method by clamping the x,y and z values individually, but there must be better way, and some official doc are saying this is possible, but again nothing I have tried worked.
You use vec.clamp(Vector3(x_min, y_min, z_min), Vector3(x_max, y_max, z_max)), or if you want the same range, use vec.clampf(min, max), see Vector3.clamp and Vector3.clampf