Moving pawn to location ends up in wrong spot.

Hi,

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.

Here is the portion that starts the movement.
1

And here is the macro in that portion

Here is a screenshot where you can see my ball go from left to right but misses its target.

Hi Daisy,

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)

Hope that helps!

@Astrotronic Thanks for your response!

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)
Screenshot 2022-10-31 205647

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.
Screenshot 2022-10-31 212253

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?
ScreenShot00002 (2)

Here is whats behind “Get Charcter Target LOC” also

Should be:


:point_up_2: from the video at 4:35.

@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.

1000 Thanks

2 Likes

:rofl:

1 Like