Summary
This article introduces the motion modifiers in Mover 2.0, their functions, how to use them, and best practices.
Introduction
When using the traditional CharacterMovementComponent, there are usually the following ways to influence the movement results:
- Directly obtain the instance of the motion component and dynamically modify its parameters to influence the movement results.
- Indirectly influence the movement results by modifying the size of the character's capsule.
- Use RootMotion to influence the movement results.
In Mover, you have corresponding ways to influence the movement results:
- Dynamically modify the settings parameters on the movement mode and share parameters in the settings to influence the movement results.
- Dynamically add/remove MovementModifier to the
MovementModeStateMachineto indirectly influence the movement results. (For example, the default provided StanceModifier is used to achieve crouching and crawling effects.) - Add
MovementModeStateMachineandInstanceMovementEffect(instant movement effect) to achieve a one-time influence on the movement results, such as teleportation, changing movement modes, etc. - Use LayeredMove to influence the movement results, such as jumping, sprinting, etc.
PS: The experience of using Mover is somewhat similar to using GAS.
API Usage
Loading Blueprint
Initializing BlueprintUE renderer...
