Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USceneComponent > API/Runtime/Engine/Components/USceneComponent/SetWorldLocationAndRotation
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 |
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.