The spray tool should spray most in the area closest to the mouse - currently it sprays just about uniformly within the circle area
Logged In: YES user_id=320951
Possible fix pseudocode:
float i = rand(1..10) // any float value between 1 and 10 float f = log(i) // should give value between 0 and 1
int x point = rand(-1..+1) * width * f int y point = rand(-1..+1) * height * f
then check if it's within the circle bounds as before
Log in to post a comment.
Logged In: YES
user_id=320951
Possible fix pseudocode:
float i = rand(1..10) // any float value between 1 and 10
float f = log(i) // should give value between 0 and 1
int x point = rand(-1..+1) * width * f
int y point = rand(-1..+1) * height * f
then check if it's within the circle bounds as before