Hi, I want my pawn to be able to navigate on the horizontal plan but also on a vertical plan when the player press a button. Any ideas please?
The question is a bit vague as we do not know how you’re moving normally.
The solution will depend on how you’ve set up the movement of the pawn.
For example:
Pressing W moves the Pawn along the ForwardVector
.
Pressing T can move the pawn along the UpVector
.
The most basic implementation would look like this:
To be more specific, I want to keep my rotation limits following a new direction. For example, I want my pawn to be able to rotate along the z axis then to rotate along the x axis if the player press the button. Sorry if it’s not clear but it’s a little bit difficult to explain.
Sorry if it’s not clear but it’s a
little bit difficult to explain.
You can then only imagine how much harder it is that to understand
Initially you wanted to move up, now you want to rotate?
Do you want to move in the direction you’re looking? So if you look a bit up and press forward you will move along the look trajectory?
I try again: I have a node ‘add controller yaw input’ that allow my pawn to rotate along the world z axis. Now I want to do the same thing but with my pawn orientated to z axis and being able to rotate along the world x axis.
There are equivalent nodes for roll and pitch. No luck to achieve what you need with those?
To illustrate, I want to get the same thing that a spider who walk on the floor and the walls.