Navigation
API > API/Plugins > API/Plugins/Mover
MoveTo: Move Actor from the starting location to the target location over a duration of time.
| Name | FLayeredMove_MoveTo |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
| Include Path | #include "DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h" |
Syntax
USTRUCT (BlueprintType )
struct FLayeredMove_MoveTo : public FLayeredMoveBase
Inheritance Hierarchy
- FLayeredMoveBase → FLayeredMove_MoveTo
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLayeredMove_MoveTo() |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FLayeredMove_MoveTo() |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRestrictSpeedToExpected | bool | If true, will restrict speed to where the actor is expected to be (in regard to start, end and duration) | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
|
| PathOffsetCurve | TObjectPtr< UCurveVector > | Optional CurveVector used to offset the actor from the path. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
|
| StartLocation | FVector | Location to Start the MoveTo move from. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
|
| TargetLocation | FVector | Location to move towards. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
|
| TimeMappingCurve | TObjectPtr< UCurveFloat > | Optional CurveFloat to apply to how fast the actor moves as they get closer to the target location. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
|
Functions
Public
Overridden from FLayeredMoveBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void AddReferencedObjects
(
FReferenceCollector& Collector |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | ||
virtual FLayeredMoveBase * Clone() |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | ||
virtual bool GenerateMove
(
const FMoverTickStartData& StartState, |
Generate a movement. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | |
virtual UScriptStruct * GetScriptStruct() |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | ||
virtual void NetSerialize
(
FArchive& Ar |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | ||
virtual FString ToSimpleString() |
DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float EvaluateFloatCurveAtFraction
(
const UCurveFloat& Curve, |
Helper function to apply TimeMappingCurve to the layered move. | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h | |
FVector GetPathOffsetInWorldSpace
(
const float MoveFraction |
Helper function to apply movement vector offset from the PathOffsetCurve | DefaultMovementSet/LayeredMoves/BasicLayeredMoves.h |