Navigation
API > API/Plugins > API/Plugins/MoverExamples
FollowSplineMode: This mode performs movement of the associated actor, along a spline. Default settings will provide a follow from start to end of the Spline. However, the start and end offsets could make the actor trace intermediate paths along the spline.
| Name | UFollowSplineMode |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MoverExamples/Source/MoverExamples/Public/MovementBases/FollowSplineMode.h |
| Include Path | #include "MovementBases/FollowSplineMode.h" |
Syntax
UCLASS (Blueprintable, BlueprintType)
class UFollowSplineMode : public UBaseMovementMode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBaseMovementMode → UFollowSplineMode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UFollowSplineMode
(
const FObjectInitializer& ObjectInitializer |
MovementBases/FollowSplineMode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bConstantFollowVelocity | bool | Should Mover follow spline with constant velocity. | MovementBases/FollowSplineMode.h |
|
| BehaviourType | EInterpToBehaviourType | Follow Mode for Path Following. | MovementBases/FollowSplineMode.h |
|
| bOrientMoverToMovement | bool | Should Mover face in the direction of movement at all times. | MovementBases/FollowSplineMode.h |
|
| CustomDurationSecondsOverride | float | If greater than zero, the follow motion would map the spline time to this duration. | MovementBases/FollowSplineMode.h |
|
| EndOffset | FSplineOffsetRangeInput | Optional end offset to define ranged follow. | MovementBases/FollowSplineMode.h |
|
| InterpolationCurve | TObjectPtr< UCurveFloat > | Optional Interpolation curve to dictate the speed and position for follow. | MovementBases/FollowSplineMode.h |
|
| RotationType | EFollowSplineRotationType | Rotation Mode for Path Following. | MovementBases/FollowSplineMode.h |
|
| StartOffset | FSplineOffsetRangeInput | Optional starting offset to define ranged follow. | MovementBases/FollowSplineMode.h |
|
| StartReveresed | bool | Should the mover start following from the End. | MovementBases/FollowSplineMode.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bResetPingPong | bool | MovementBases/FollowSplineMode.h | ||
| CurrentSplineTime | float | Local State Variables. | MovementBases/FollowSplineMode.h | |
| EndOffsetSeconds | float | MovementBases/FollowSplineMode.h | ||
| FollowDirectionMultiplier | int32 | MovementBases/FollowSplineMode.h | ||
| FollowDuration | float | MovementBases/FollowSplineMode.h | ||
| OrientationMultiplier | int32 | MovementBases/FollowSplineMode.h | ||
| StartOffsetSeconds | float | MovementBases/FollowSplineMode.h | ||
| StartReversedMultiplier | int32 | MovementBases/FollowSplineMode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GenerateMove_Implementation
(
const FMoverTickStartData& StartState, |
MovementBases/FollowSplineMode.h | ||
void SetControlSpline
(
const AActor* SplineProviderActor, |
MovementBases/FollowSplineMode.h |
|
|
virtual void SimulationTick_Implementation
(
const FSimulationTickParams& Params, |
MovementBases/FollowSplineMode.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float ApplyBehaviorType
(
float MeasuredSplineTime |
MovementBases/FollowSplineMode.h | ||
float ApplyFollowDirection
(
float MeasuredSplineTime |
MovementBases/FollowSplineMode.h | ||
bool CanMove
(
float MeasuredSplineTime |
MovementBases/FollowSplineMode.h | ||
void ConfigureSplineData() |
MovementBases/FollowSplineMode.h | ||
FTransform GetTransformAtTime
(
float MeasuredSplineTime, |
MovementBases/FollowSplineMode.h | ||
void UpdatePathState
(
FFollowSplineState& OutputPathState |
MovementBases/FollowSplineMode.h |
Overridden from UBaseMovementMode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegistered
(
const FName ModeName |
MovementBases/FollowSplineMode.h |