class
MCharacterMovementComponent
- Module
- Game
- Header
#include "Game/MCharacterMovementComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
float | maxWalkSpeed | Tuning Default 4.5f. |
float | sprintSpeedMultiplier | Default 1.6f. |
float | crouchSpeedMultiplier | Default 0.45f. |
float | jumpVelocity | m/s upward Default 5.0f. |
float | airControl | Default 0.25f. |
float | gravity | m/s², applied by the character controller Default -9.81f. |
bool | fixedStepRootMotion | Root 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. |
float | capsuleRadius | Capsule — pushed into the mirrored CharacterControllerComponent at OnRegister. Default 0.3f. |
float | capsuleHeight | Default 1.8f. |
float | stepHeight | Default 0.35f. |
Constructors
| Signature | Name | Description |
|---|---|---|
MCharacterMovementComponent() = default | MCharacterMovementComponent |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnRegister | |
void | PullFromMirror | |
void | TickComponent | |
void | Jump | Queue a jump — applied next tick if grounded. |
void | StopJumping | |
int32_t | ApplyDash | Root-motion sources: predicted, replayed movement that gameplay applies over time (FRootMotionSource). |
int32_t | ApplyJumpForce | |
int32_t | ApplyMoveTo | |
void | StopRootMotionSource | |
void | SetCustomMovementMode | Switches to a game-registered movement mode (FCustomMovementModes); an unregistered id falls back to Walking/Falling on the next step. |
void | ClearCustomMovementMode | |
void | Sprint | |
void | SetSprinting | |
bool | IsSprinting | |
void | Crouch | |
void | UnCrouch | |
void | SetCrouched | |
void | SetCrouching | |
bool | IsCrouched | |
void | SetMovementInput | |
void | ClearMovementInput | |
EMovementMode | GetMovementMode | |
std::string | GetMovementModeName | |
bool | IsCrouchedShape | |
bool | IsGrounded | |
Vec3 | GetVelocity |
Function details
MCharacterMovementComponent
C++
MCharacterMovementComponent() = defaultOnRegister
C++
void OnRegister() overridePullFromMirror
C++
void PullFromMirror(World* ecs, EntityID entity) overrideTickComponent
C++
void TickComponent(float deltaSeconds) overrideJump
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() constCrouch
C++
void Crouch()UnCrouch
C++
void UnCrouch()SetCrouched
C++
void SetCrouched(bool crouched)SetCrouching
C++
void SetCrouching(bool crouched)IsCrouched
C++
bool IsCrouched() constSetMovementInput
C++
void SetMovementInput(const Vec3& worldDirection)ClearMovementInput
C++
void ClearMovementInput()GetMovementMode
C++
EMovementMode GetMovementMode() constGetMovementModeName
C++
std::string GetMovementModeName() constIsCrouchedShape
C++
bool IsCrouchedShape() constIsGrounded
C++
bool IsGrounded() constGetVelocity
C++
Vec3 GetVelocity() constGenerated from Game/MCharacterMovementComponent.h via game.json · Nov 5, 2026Version 1.0.0