Language:
Discover
By Skill Level
By Category

USceneComponent::SetRelativeLocationAndRotation

Choose your OS:

Syntax

void SetRelativeLocationAndRotation
(
    FVector NewLocation,
    FRotator NewRotation,
    bool bSweep,
    FHitResult * OutSweepHitResult,
    ETeleportType Teleport
)

Remarks

The FRotator version. It could be a simple wrapper to the FQuat version but it tries to avoid FQuat conversion if possible because: (a) conversions affect rotation equality tests so that SetRotation() calls with the same FRotator can cause unnecessary updates because we think they are different rotations after normalization. (b) conversions are expensive.

References

Module

Engine

Header

Runtime/Engine/Classes/Components/SceneComponent.h

Source

Runtime/Engine/Private/Components/SceneComponent.cpp