- Home /
Question by
Sackpote · Jul 02, 2020 at 08:47 AM ·
charactercontrollerdistancedistance check
Limit the distance between a GameObject and a Character Controller
Hi, I'm trying to limit the distance between a GameObject and a Character Controller. I thought I could predict the next position of my character and then check if it would be less or equal to the Vector3.distance between itself and the GameObject but I don't think I can do that with CharacterController.Move()
How can I do that ?
Thanks!
Comment
Your answer
Follow this Question
Related Questions
How can I find the Distance between Two Objects on the X Axis? 3 Answers
ARCore tracking maximum distance 2 Answers
change character controller's position on click 1 Answer
How to make a player move around a tower at a set distance? 1 Answer
Calculate the distance between an object and my player 1 Answer