Nick der mit hut
Member
Hi,
I have the variable
In my step its:
and I want it to jump to 0 after its below 1.
Do I always have to write
or is there an easy function like clamp, min, max etc.
I have the variable
speed = 8
In my step its:
speed *= 0.9;
and I want it to jump to 0 after its below 1.
Do I always have to write
if (speed < 1) speed = 0;
?or is there an easy function like clamp, min, max etc.