UMassRepresentationProcessor::TeleportActor

Teleports the actor at the specified transform by preserving its velocity and without collision.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UMassRepresentationProcessor::TeleportActor()

UMassCrowdRepresentationProcessor::TeleportActor()

References

Module

MassRepresentation

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationProcessor.h

Include

#include "MassRepresentationProcessor.h"

Source

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationProcessor.cpp

Syntax

virtual void TeleportActor
(
    const FTransform & Transform,
    AActor & Actor,
    FMassCommandBuffer & CommandBuffer
)

Remarks

Teleports the actor at the specified transform by preserving its velocity and without collision. The destination will be adjusted to fit an existing capsule.

Parameters

Parameter

Description

Transform

is the new actor's transform

Actor

is the actual actor to teleport

CommandBuffer

to queue up anything that is thread sensitive