AController::GetPlayerViewPoint

Returns Player's Point of View For the AI this means the Pawn's 'Eyes' ViewPoint For a Human player, this means the Camera's ViewPoint

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

AController::GetPlayerViewPoint()

APlayerController::GetPlayerViewPoint()

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 GetPlayerViewPoint
(
    FVector & Location,
    FRotator & Rotation
) const

Remarks

Returns Player's Point of View For the AI this means the Pawn's 'Eyes' ViewPoint For a Human player, this means the Camera's ViewPoint

out_Location, view location of player out_rotation, view rotation of player