Restrict movement within a radius
- by Phil
I asked a similar question recently but now I think I know more about what I really want to know. I can answer my own question if I get to understand this bit.
I have a situation where a sprite's center point needs to be constrained within a certain boundary in 2d space. The boundary is circular so the sprite is constrained within a radius. This…