UMovementComponent::K2_MoveUpdatedComponent

Moves our UpdatedComponent by the given Delta, and sets rotation to NewRotation.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h

Include

#include "GameFramework/MovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/MovementComponent.cpp

Syntax

bool K2_MoveUpdatedComponent
(
    FVector Delta,
    FRotator NewRotation,
    FHitResult & OutHit,
    bool bSweep,
    bool bTeleport
)

Remarks

Moves our UpdatedComponent by the given Delta, and sets rotation to NewRotation. Respects the plane constraint, if enabled.

Returns

True if some movement occurred, false if no movement occurred. Result of any impact will be stored in OutHit.