Navigation
API > API/Plugins > API/Plugins/MoverExamples > API/Plugins/MoverExamples/MovementBases
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBaseMovementMode
- UFollowSplineMode
References
| Module | MoverExamples |
| Header | /Engine/Plugins/Experimental/MoverExamples/Source/MoverExamples/Public/MovementBases/FollowSplineMode.h |
| Include | #include "MovementBases/FollowSplineMode.h" |
Syntax
UCLASS (Blueprintable, BlueprintType)
class UFollowSplineMode : public UBaseMovementMode
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bConstantFollowVelocity | Should Mover follow spline with constant velocity. | |
| EInterpToBehaviourType | BehaviourType | Follow Mode for Path Following. | |
| bool | bOrientMoverToMovement | Should Mover face in the direction of movement at all times. | |
| TObjectPtr< USplineComponent > | ControlSpline | ||
| float | CustomDurationSecondsOverride | If greater than zero, the follow motion would map the spline time to this duration. | |
| FSplineOffsetRangeInput | EndOffset | Optional end offset to define ranged follow. | |
| TObjectPtr< UCurveFloat > | InterpolationCurve | Optional Interpolation curve to dictate the speed and position for follow. | |
| EFollowSplineRotationType | RotationType | Rotation Mode for Path Following. | |
| FSplineOffsetRangeInput | StartOffset | Optional starting offset to define ranged follow. | |
| bool | StartReveresed | Should the mover start following from the End. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UFollowSplineMode
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | ApplyBehaviorType
(
float MeasuredSplineTime |
||
| float | ApplyFollowDirection
(
float MeasuredSplineTime |
||
| bool | CanMove
(
float MeasuredSplineTime |
||
| void | |||
| FTransform | GetTransformAtTime
(
float MeasuredSplineTime, |
||
| void | SetControlSpline
(
const AActor* SplineProviderActor, |
||
| void | UpdatePathState
(
FFollowSplineState& OutputPathState |
Overridden from UBaseMovementMode
| Type | Name | Description | |
|---|---|---|---|
| void | OnGenerateMove
(
const FMoverTickStartData& StartState, |
||
| void | OnRegistered
(
const FName ModeName |
||
| void | OnSimulationTick
(
const FSimulationTickParams& Params, |