Navigation
API > API/Plugins > API/Plugins/ChaosMover
Base for any movement mode that proceeds along a defined path within a specified amount of time
| Name | UChaosPathedMovementMode |
| Type | class |
| Header File | /Engine/Plugins/Experimental/ChaosMover/Source/ChaosMover/Public/ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
| Include Path | #include "ChaosMover/PathedMovement/ChaosPathedMovementMode.h" |
Syntax
UCLASS (Within=MoverComponent)
class UChaosPathedMovementMode :
public UChaosMovementMode ,
public IChaosMovementActuationInterface ,
public IChaosPathedMovementModeInterface
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBaseMovementMode → UChaosMovementMode → UChaosPathedMovementMode
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UChaosPathedMovementMode
(
const FObjectInitializer& ObjectInitializer |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAllowPatternDebugDrawing | bool | True to allow individual patterns to draw debug representations. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| bDebugDrawAggregatePath | bool | True to draw debug lines for the aggregate path resulting from all the patterns in the path (i.e. the path that will actually be followed in game) | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| bUseJointConstraint | bool | True to have the updated component be able to respond to physics inputs by being "pulled" along the path using a joint constraint configured using JointConstraintProperties below. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| CustomEasingCurve | TObjectPtr< UCurveFloat > | If using a custom ease, this is the curve that will be used. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| Easing | EAlphaBlendOption | The kind of easing to apply when traveling along the path | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| JointConstraintProperties | FConstraintProfileProperties | Configuration of the joint constraint that (if enabled) pulls the updated component along the path The default settings are for a very stiff joint that allows just a little bit of "play" | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| JointSettings | Chaos::FPBDJointSettings | ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
| OneWayPlaybackDuration | float | Total duration in seconds of a one-way trip from start to end. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| PathDebugDrawColor | FColor | The color used when drawing the aggregate path | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
| PathPatterns | TArray< TObjectPtr< UChaosPathedMovementPatternBase > > | The set of patterns to follow that combine to form the path the component will follow | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UChaosPathedMovementPatternBase * BP_FindPattern
(
TSubclassOf< UChaosPathedMovementPatternBase > PatternType |
Finds the first path pattern on this mode of the given type, if there is one | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
virtual void GenerateMove_Implementation
(
const FMoverTickStartData& StartState, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
float GetOneWayTripDuration() |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
|
virtual void InitializePath() |
Called when the owning UChaosPathedPhysicsMoverComponent is registered (i.e. at both edit and game time) | ChaosMover/PathedMovement/ChaosPathedMovementMode.h | |
void SetOneWayTripDuration_BeginPlayOnly
(
float NewDuration |
Set the time it takes to travel one way along this path from start to end. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
|
virtual void SimulationTick_Implementation
(
const FSimulationTickParams& Params, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Overridden from UChaosMovementMode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool UsesMovementBasisTransform() |
Whether this movement mode is relative to a basis transform. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Overridden from UBaseMovementMode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegistered
(
const FName ModeName |
UBaseMovementMode. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EDataValidationResult IsDataValid
(
FDataValidationContext& Context |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Overridden from IChaosMovementActuationInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const Chaos::FPBDJointSettings & GetConstraintSettings() |
Constraint settings of the joint constraint, only valid when ShouldUseConstraint() is true. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h | |
virtual bool ShouldUseConstraint() |
Whether the simulation should use a constraint to move the controlled particle, or moving it kinematically. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Overridden from IChaosPathedMovementModeInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FTransform CalcTargetTransform
(
float Progression, |
Returns the transform on the path at Progression. | ChaosMover/PathedMovement/ChaosPathedMovementMode.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OnInReverseChanging
(
double BaseSimTimeMs, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void OnLoopingChanging
(
double BaseSimTimeMs, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void OnOneWayChanging
(
double BaseSimTimeMs, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void OnPlaybackBounced
(
double BaseSimTimeMs |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void OnPlaybackStarting
(
double BaseSimTimeMs |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void OnPlaybackStopping
(
double BaseSimTimeMs, |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h | ||
void SetDefaultJointConstraintProperties() |
ChaosMover/PathedMovement/ChaosPathedMovementMode.h |