How can i make the cable go the same direction of the line-trace + How can I make my cable have more range and not point down in 2D?

Another question I’m hoping to seek answers for, I’m making a 2.5D Game Project and I’m trying to figure out how to make a Grappling Mechanic. I’ve looked everywhere, and asked questions and made some progress, but it always stops at the cables range and triggering to appear


image
This is my code so far, and also it in action


Hopefully I’ll find an answer, I know unreal in 2D is hard to do, but hopefully I get an answer to this eternal problem I’ve had

I believe End Location expects a Local Space value, whereas Impact Point is in World Space. You need to convert Impact Point to Local Space by using the Inverse Transform Location function.

image

Connect Get Actor Transform (or Cable → Get World Transform) to the T pin, the return value will be in Local Space.

Transform a position by the inverse of the supplied transform. For example, if T was an object’s transform, this would transform a position from world space to local space.

References:

1 Like

Thanks! That actually worked!

1 Like

Also found out the other question I had, which was also solved with that solution too

1 Like

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