class

MCharacterMovementComponent

Module
Game
Header
#include "Game/MCharacterMovementComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
floatmaxWalkSpeedTuning Default 4.5f.
floatsprintSpeedMultiplierDefault 1.6f.
floatcrouchSpeedMultiplierDefault 0.45f.
floatjumpVelocitym/s upward Default 5.0f.
floatairControlDefault 0.25f.
floatgravitym/s², applied by the character controller Default -9.81f.
boolfixedStepRootMotionRoot motion is sampled on the physics fixed step rather than the render frame, so the capsule's displacement per step is the same at 30, 60 or 144 Hz — the pose still evaluates per frame. Off = the per-frame delta AnimationSystem publishes drives the capsule as before. Default true.
floatcapsuleRadiusCapsule — pushed into the mirrored CharacterControllerComponent at OnRegister. Default 0.3f.
floatcapsuleHeightDefault 1.8f.
floatstepHeightDefault 0.35f.

Constructors

SignatureNameDescription
MCharacterMovementComponent() = defaultMCharacterMovementComponent

Public functions

ReturnsNameDescription
voidOnRegister
voidPullFromMirror
voidTickComponent
voidJumpQueue a jump — applied next tick if grounded.
voidStopJumping
int32_tApplyDashRoot-motion sources: predicted, replayed movement that gameplay applies over time (FRootMotionSource).
int32_tApplyJumpForce
int32_tApplyMoveTo
voidStopRootMotionSource
voidSetCustomMovementModeSwitches to a game-registered movement mode (FCustomMovementModes); an unregistered id falls back to Walking/Falling on the next step.
voidClearCustomMovementMode
voidSprint
voidSetSprinting
boolIsSprinting
voidCrouch
voidUnCrouch
voidSetCrouched
voidSetCrouching
boolIsCrouched
voidSetMovementInput
voidClearMovementInput
EMovementModeGetMovementMode
std::stringGetMovementModeName
boolIsCrouchedShape
boolIsGrounded
Vec3GetVelocity

Function details

MCharacterMovementComponent

C++
MCharacterMovementComponent() = default

OnRegister

C++
void OnRegister() override

PullFromMirror

C++
void PullFromMirror(World* ecs, EntityID entity) override

TickComponent

C++
void TickComponent(float deltaSeconds) override

Jump

C++
void Jump()

Queue a jump — applied next tick if grounded.

StopJumping

C++
void StopJumping()

ApplyDash

C++
int32_t ApplyDash(const Vec3& velocity, float duration)

Root-motion sources: predicted, replayed movement that gameplay applies over time (FRootMotionSource). Each returns the source id.

ApplyJumpForce

C++
int32_t ApplyJumpForce(const Vec3& direction, float distance, float height, float duration)

ApplyMoveTo

C++
int32_t ApplyMoveTo(const Vec3& target, float duration)

StopRootMotionSource

C++
void StopRootMotionSource(int32_t sourceId)

SetCustomMovementMode

C++
void SetCustomMovementMode(int32_t customMode)

Switches to a game-registered movement mode (FCustomMovementModes); an unregistered id falls back to Walking/Falling on the next step.

ClearCustomMovementMode

C++
void ClearCustomMovementMode()

Sprint

C++
void Sprint(bool enable)

SetSprinting

C++
void SetSprinting(bool enable)

IsSprinting

C++
bool IsSprinting() const

Crouch

C++
void Crouch()

UnCrouch

C++
void UnCrouch()

SetCrouched

C++
void SetCrouched(bool crouched)

SetCrouching

C++
void SetCrouching(bool crouched)

IsCrouched

C++
bool IsCrouched() const

SetMovementInput

C++
void SetMovementInput(const Vec3& worldDirection)

ClearMovementInput

C++
void ClearMovementInput()

GetMovementMode

C++
EMovementMode GetMovementMode() const

GetMovementModeName

C++
std::string GetMovementModeName() const

IsCrouchedShape

C++
bool IsCrouchedShape() const

IsGrounded

C++
bool IsGrounded() const

GetVelocity

C++
Vec3 GetVelocity() const
Generated from Game/MCharacterMovementComponent.h via game.json · Nov 5, 2026Version 1.0.0