I made a reference image to help with my question. Using the “Get Cable Particle Locations” from a cable component doesn’t give an accurate location for the static meshes to be attached to. It pretty much draws a straight line from the first to the last vertex, then places the meshes (the red Xs on the diagram). However, the meshes need to be attached to the points AS the cable updates (refer to points 1,2,3 on diagram).
I looked around and found nothing. Has anyone come across this before? Any help would be appreciated.
Since cables are basically particle simulations, the particle locations will only update during play. So you need to do this in Event Graph (not Construction Script), and you need to hook up your SetWorldLocation node for the static mesh to Event Tick.
(Yeah it’s been more than 3 years since the question, but I came across the same issue today and I figured it’s worth the answer since this comes up pretty high in search.)
Hey, that’s a great find but he only ends up attaching 1 mesh to the cable and I can’t seem to get it to apply a mesh at every point still (and have it follow the cable still) Any ideas how to do that?
Now you can drag the blueprint actor into the scene and point it to a cable actor and it will automatically spawn a mesh for every other segment and attach it to the cable.