Yet another cross product question

Finally got information on how/where to use cross product after a bit of searching and got told it can be used for running up walls - only issue is the only tutorial I can find on this is unity, and I have no idea how I’d pass this on into Unreal Editor.

The tutorial in question is this one along this link (Wall Running in Unity) but I was wondering if anyone has video or text links to a tutorial on how to do it in UE or can explain it?

I’ve also got the issue of this can’t work on ALL walls (it can only be on a specific object due to the game) so that’s fun and I have no idea where to start on that either

Help would be appreciated

Hey @HawksHalo!

Here’s a pretty good tutorial for this:

Disclaimer: This link is not associated with Unreal Engine, Epic Games, or their partners.

If it helps, what they call a RayCast in Unity is known as a LineTrace in Unreal. You can line trace by channel (vision etc) returning the first blocking hit, or you can trace for objects and return everything hit by the trace with a list of things NOT to return.

What they refer to as “Vector3.Up” I believe would be what you get using a “GetActorUpVector”, though by reading the tutorial it sounds more like “GetActorForward.”
Edit: As stated by @baobao4435 below, it’s world up. Which, I may be wrong on this, but I’m fairly certain is (0, 0, 1.0).

Hope this helps! :slight_smile:

1 Like

Thanks, I’ll give this a try and pray it works- Otherwise it’ll be back to the drawing board to work out what to use this horrid technical function for

vector3.up=world up in unreal.

these functions are made with cross product.
cross
if you can’t find materials about cross product,you could try to search these nodes useage.

1 Like