Random function and constrain

You may also be interested in this circle-rect collision detection demo:

1 Like