Limit Vector Size in a radius
I'm making an object which the player controls it by adding relative location.
What a want to do: When this object arrive some distance (length between Character and the object), they will not be possible to go any further, just to return, and keep in that radius without going away.
How can I do that?
asked Apr 21 '17 at 08:09 PM in Blueprint Scripting
Just need clarification on something. Are you trying to keep the object within some distance of the character? Or are you trying to keep the character within some distance of the object?
If you want to keep something within a certain radius of something else, you can try doing this. Say we want to keep "B", within some distance "r", of "A".
This is also assumes that B is also attached to A. That way B moves with A.
answered Apr 21 '17 at 10:01 PM
Math your vector and clamp it after all.
answered Apr 22 '17 at 05:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here