I’m confused…
I’m fairly new to UE4 and trying to build a push system on my own with my basic knowledge, as no other tutorial really meets my needs or is unnecessary complex. Basically: It’s a 3rd person game, fixed camera view. When pressing the interact button the player rotates to the side of the cube he is facing to and can move the cube only on the specific axis.
The facing direction is defined by a normal which comes from a forward sphere trace and works pretty well so far. The weird part comes after the move component function: The two branches check the direction of the player and set some variables accordingly, so I can use this information to controle the movement: if he is facing left/right (forward vector Y = 1 or -1) he can only move on the y-axis and vice versa.
So, I don’t know why but sometimes it works well for both axis and sometimes only for the x-axis but not for the y-axis. The bottom branch sometimes doesn’t get to “true” sometimes it does - even if the condition is always met! Sequence doesn’t help. When swapping the nodes (bottom branch is first) then the y-axis works but not the x-axis. Seems like sometimes only the first branch is working.
Am I missing something?