Hi, i have been trying to make a ladder using the FPS template. I got the basic trigger volume set up but the problem i currently have is that i cant seem to get the AddMovementInput to work for going up and down.
I have tried a couple of different variations on the current
// find out which way is forward
const FRotator Rotation = GetControlRotation();
FRotator YawRotation(0, Rotation.Yaw, 0);
// Get forward vector
const FVector Direction = FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);
// add movement in that direction
AddMovementInput(Direction, Value);
But without success.
I have also tried
FVector Direction = GetActorUpVector();
// add movement in that direction
AddMovementInput(Direction, Value);
which also does not work.
The result of most of these tests are that instead of moving in a direction, the character just stands still.
Anyone know what i could be doing wrong or have any suggestion on how i can do this?