I’m using a youtube tutorial to learn how to grapple and move my character to a location.
Everything is going well except for when my character moves, it always comes in lower than the target. One difference in my project and the tutorial is that he is 3d and mine is 2d.
The first thing I’d look at is the Origin (0,0,0) of the Character (Whatever is in OWNING CHARACTER VAR).
Maybe some of the objects (like the ball) are offset (or don’t have enough of an offset since in the 3d platformer the origin is at the feet of the character)
For your second question, the target does have an offset option on it but I have it matched to the target for now (as seen in image)
I can adjust that for circumstances but for now I’m just trying to hit my target.
In the tutorial I’ve been watching (Unreal Engine - Grappling Tutorial (4/4) - YouTube) the narrator does create a sphere at the end of the third person gun to as the origin point for everything happening (one reason he created the offset) I just used my sprite as the source. Which seems to work for the most part as the cable is launched correctly.
The cable component is also using “owning_character_var” as the location source.
Oh, also that variable is just using my sprite as it will be the only “owning Character” for this.
Not sure if it helps but I can print string the velocity im heading with as I grapple but not sure how I could use that to compare to a different value to see if it is correct?
@pezzott1 Thank you for your response. It appears that this section of the video is the narrator building the “Find Best Target” function. I have this portion built out, this is actually where I mention one of the only differences between us is that I use the character location instead of the Camera Manager location as its a 2d game.
@pezzott1 Wow I checked your response and disregarded you as looking in the wrong spot. I’ve been looking at this for days now and I just double checked what you were talking about and you were dead on.