#how do you tell the character to move to

1 messages · Page 1 of 1 (latest)

amber moat
#

top down, click to move

lime hearth
#

can't tell much without a screenshot of the blueprint setup

peak ledge
#

So the default behavior is that you have your character in, e.g., the center of the screen. You click above it and it moves to the point you found navigational above it?

#

And now you wish to have that same behavior generate some mirrored point below the character instead for some kind of "inverse controls" debuff?

amber moat
peak ledge
#

So, I mean in theory you could simply take that location and math out the mirrored point, and check if that is navigational (there should already be some node be used to ensure the original point is on the NavMesh).

amber moat
peak ledge
#

Vector Math is important. You can go over to #game-math and ask peeps there, or try to watch some basic videos on it.
I can math it out for you, but I'm not sure that leaves a lasting effect.

If you understand how Vector Math works, this would be somewhat as simple as addition and multiplication with normal numbers.

#

Fwiw, you can take the OriginalPoint and Subtract the CharacterLocation from it. That makes the OriginalPoint relative to the CharacterLocation. You can then multiply the result by -1 to flip it and add back the CharacterLocation to it. That gives you your MirroredPoint. You do want to make sure that this point can be reached by navigation though. Maybe do some trace from somewhere above it to somewhere below it if your game has different Z heights, like hills and platforms.

amber moat
peak ledge
#

Then go to the top of your channel list and click on "Channels & Roles".

#

And then in the center window, at the top on Browse Channels.

#

And then search for gamemath