How do I make a Drag Detector keep an object a set distance from the player


I want the part to maintain a constant distance from the player, I (sort of) achieved this by using a rod or rope constraint however these both prevent the player from moving towards the object, rather than moving the object away from the player (this method was not shown in vid). Any help to either fix the attempt I made or to solve the problem would be greatly appreciated

1 Like

You could theoretically make an invisible RodConstraint, when the player first interacts with the block. Then when the player finishes interacting, delete the constraint.

That is what i was doing (but not shown in clip), but then the cube still floats like normal, but you are tied to it and can’t move, basically its holding you still instead of holding it a set distance from you

Have you tried a RopeConstraint. I think this type of constraint would be better. I really can’t think of another way, beside using a while loop to check the distance, and correct it if too short, but that would probably be buggy

Same problem, i’ve just gone and made a custom one instead using alignPosition constraints and its working way better

1 Like

Nice idea. Didn’t think of that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.