- Home /
How to limit an object's position to a spherical radius?
I need to lock an object around another for this grappling game I'm making. I've tried this:
transform.position = (transform.position - grappleHead.transform.position) + Vector3.ClampMagnitude(transform.position, minRange);
but this doesn't work at all. What do I do?
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Jumping with rigid body3d 1 Answer
how to keep a "ship" over a platform or rigidbody? 0 Answers
how get bow to add more force over time 0 Answers