So basically I have a spline mesh that has its start attached to a cube and its end attached to the player. The problem is when the player moves around and stands behind an object, then the spline mesh goes right through that object. (See picture below)
I want the spline mesh to curve/wrap around that object, just like the green drawing, but I’m having a really hard time with it. Any help would be appreciated, thanks!
Hmm. This is indeed a complicated problem with probably a complex solution.
I worked on a project just recently that required me to create splines in-game, create spline points on them and move them individually around with the mouse.
I assume you can do the same thing in your game, but instead make the spline points attach to physics actors that can then collide with your big cylinder there. This will fit the spline around other objects with collision geometry.
Just a thought.
BUT, if you are trying to simulate a rope tied to the character, maybe a skeletal rope mesh with physics components would be better than using a spline. There are many tutorials out there on how to make ropes.
Did you ever find a solution? There are many plugins and marketplace items that can help out with something like this. I know a few if you need to get some.