Navigation
API > API/Plugins > API/Plugins/MoverExamples > API/Plugins/MoverExamples/MovementBases
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBaseMovementMode
- UFollowPathMode
References
| Module | MoverExamples |
| Header | /Engine/Plugins/Experimental/MoverExamples/Source/MoverExamples/Public/MovementBases/FollowPathMode.h |
| Include | #include "MovementBases/FollowPathMode.h" |
Syntax
UCLASS (Blueprintable, BlueprintType)
class UFollowPathMode : public UBaseMovementMode
Remarks
FollowPathMode: This mode performs simple movement of the associated actor, attempting to interpolate through a series of locations. There are variety of settings that affect behavior, such as speed and looping.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EInterpToBehaviourType | BehaviourType | Method of path-following. | |
| TArray< FInterpControlPoint > | ControlPoints | List of ordered path locations to visit. | |
| float | Duration | Time (in seconds) required to move from the first point to the last (or vice versa) | |
| EFollowPathRotationType | RotationType | Method of rotating the actor during path-following. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UFollowPathMode
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | CalculateNewPathPct
(
float InPathPct, |
Based on current path pct + direction + time step, find the next path pct, possibly stopping or changing direction mid-step. | |
| FVector | ComputeInterpolatedTangentFromPathPct
(
const float PathPct |
||
| FVector | ComputeMoveDelta
(
const FVector CurrentPos, |
Find the necessary move delta to get onto path at a certain pct, based on current location. | |
| FRotator | ComputeMoveOrientation
(
const float TargetPathPos, |
||
| FVector | ComputeTangentFromPathPct
(
const float PathPct, |
||
| void | UpdateControlPoints
(
bool InForceUpdate |
Update the control points. Adjusts the positions of there are any actor control points as well as updating the spline type. |
Overridden from UBaseMovementMode
| Type | Name | Description | |
|---|---|---|---|
| void | OnGenerateMove
(
const FMoverTickStartData& StartState, |
||
| void | OnSimulationTick
(
const FSimulationTickParams& Params, |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |