USceneComponent::SetWorldLocationAndRotation

Set the relative location and [FQuat](API\Runtime\Core\Math\FQuat) rotation of the component to put it at the supplied pose in world space.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SceneComponent.h

Include

#include "Components/SceneComponent.h"

Source

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

Syntax

void SetWorldLocationAndRotation
(
    FVector NewLocation,
    const FQuat & NewRotation,
    bool bSweep,
    FHitResult * OutSweepHitResult,
    ETeleportType Teleport
)

Remarks

Set the relative location and FQuat rotation of the component to put it at the supplied pose in world space.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss