AController::SetInitialLocationAndRotation

Set the initial location and rotation of the controller, as well as the control rotation.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

AController::SetInitialLocationAndRotation()

APlayerController::SetInitialLocationAndRotation()

References

Module

Engine

Header

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

Include

#include "GameFramework/Controller.h"

Source

/Engine/Source/Runtime/Engine/Private/Controller.cpp

Syntax

virtual void SetInitialLocationAndRotation
(
    const FVector & NewLocation,
    const FRotator & NewRotation
)

Remarks

Set the initial location and rotation of the controller, as well as the control rotation. Typically used when the controller is first created.