4 ms·
I am not sure if this is a step function, but I saw someone pretty much do an octagon shape to hit someone. How?
by dmak 12y ago
I am not sure if this is a step function, but I saw someone pretty much do an octagon shape to hit someone. How?
- madez 12y ago(x+1) * max(0, sign(x)) * (1-max(0, sign(x-1/sqrt(2)))) + (1+1/sqrt(2)) * (1-max(0, sign(x-1/sqrt(2)-1))) * max(0, sign(x-1/sqrt(2))) + (-x+sqrt(2)+2) * max(0, sign(x-1/sqrt(2)-1)) * (1-max(0, sign(x-sqrt(2)-1)))