UCCharacterMovementComponent

Overview

Character movement with jump state machine. Extends UCharacterMovementComponent, implements ICCharacterMovementComponent_.

Properties & Methods

Name Description
defaultMaxWalkSpeed Base walk speed from maker
stateMachineMap Jump state machine (M_JUMP)
init Sets walk speed, step height, acceleration for paths, jump velocity
updateSpeed Multiplies walk speed and braking by a factor
proceedStartJump Triggers jump via state machine event
proceedEndJump Ends jump via state machine event
// Jump state machine:
// S_NOT_JUMPING -> (E_USER_CLICK_START_JUMP && !blocking && !attacking) -> S_JUMPING
// S_JUMPING -> (E_USER_CLICK_END_JUMP) -> S_NOT_JUMPING

movementComponent->updateSpeed(1.5f); // 150% speed