AddMovementInput For Ladders

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?

I guess you have to set character state to Flying and then either play animation with root movement or move character up manually. AFAIK it was done that way in UDK.

What are you referring to when you say “root movement”?

That is the mass center of the character. Generally for that kind of animation or movement the root transform you’re looking for is a projection on the Y plane

Alright, will have to test around a bit then.