Hello, I have an issue that I need help with . This should be a simple functionality but I guess it’s not.
I have 2 cubes and those cubes have one socket inside of them in the center. Also I have a cylinder that has 2 sockets, one on each end. I want to attach Socket 1 in the cylinder to the Cube 1, and Socket 2 in the cylinder to the Cube 2. When the location of one of the cube changes the cylinder will stretch. I think location will only change in one axis. Please Help!
Hi, it doesn’t work like that, you can’t attach it to 2 different places. But you can achieve it easily by placing cylinder between those sockets and calculate what scale it should have to end on those 2 sockets.
This solution will only work if you want to move your cubes in 1 axis. If you need it to work with more axes, consider using spline mesh.
Each of the shapes has to be its own actor.
BP_Cylinder, BP_Cube
In BP_Cylinder spawn a BP_Cube actor and attach it to socket 1. Spawn another BP_Cube actor and attach it to socket 2.
Done.
I found a solution or workaround, it works for my case. Below are the steps:
- Created Cube 1 and Cube 2
- Added Cable Actor
- Attached Cable Actor to CUbe 1 by right-clicking on the Cable actor and selecting “Attach to”
- In the Details for Cable Actor pasted the name of the Cube 2 to the “Attach End to”
- Also added the name of the Socket for Cube 2 for more precision
Limitation that you can attach to the Pivot of the Cube 1 and not a specific socket
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.