Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/UMoverSimulation
Description
Attempt to teleport to TargetTransform. The teleport is not guaranteed to happen. This function is meant to be called by an instant movement effect as part of its effect application. If it succeeds a FTeleportSucceededEventData will be emitted, if it fails a FTeleportFailedEventData will be sent.
| Name | AttemptTeleport |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoverSimulation.h |
| Include Path | #include "MoverSimulation.h" |
UFUNCTION (BlueprintCallable, Category=Mover)
virtual void AttemptTeleport
(
const FMoverTimeStep & TimeStep,
const FTransform & TargetTransform,
bool bUseActorRotation,
FMoverSyncState & OutputState
)
Parameters
| Name | Remarks |
|---|---|
| TimeStep | The time step of the current step or substep being simulated. This will come from the ApplyMovementEffect function. |
| TargetTransform | The transform to teleport to. In the case bUseActorRotation is true, the rotation of this transform will be ignored. |
| bUseActorRotation | If true, the rotation will not be modified upon teleportation. If false, the rotation in TargetTransform will be used to orient the teleported. |
| OutputState | This is the sync state that me modified as a result of the application of this effect. Like TimeStep, this should come from the ApplyMovementEffect function. |