Restrict Component Mesh Based on Cable Component

Hello, I want to make a static mesh restrict its movement based on a cable. How can I do that? I’ve been trying to figure it out for hours.

Your cable is most likely already a spline but if it’s not, you can place a spline in it. And then you can constantly set your actor’s location to the closest location on the spline like this:

To trigger this constantly, you can either place this after Event Tick, or trigger it with a custom event that’s called by a looping timer.

Hope this helps! :innocent:

I cant do that