hey guys, i’d like to be able to drag an object within a certain radius of a point, on a 2d plane. if i drag that object outside of that radius, i’d like it to still follow my pointer in terms of it’s position along the circumference of an imaginary circle, but to not stray outside of that radius.
any ideas? i’m thinking it’d take some vector math, or something??
right now i’m able to drag an object by using a physics.raycast to a plane (with an orthographic camera of course), to get the mouse position. i’m assigning that position to a transform, and attaching the dragable object to that transform…