Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APlayerController
Description
Returns the point of view of the actor. Note that this doesn't mean the camera, but the 'eyes' of the actor. For example, for a Pawn, this would define the eye height location, and view rotation (which is different from the pawn rotation which has a zeroed pitch component). A camera first person view will typically use this view point. Most traces (weapon, AI) will be done from this view point.
Virtual Inheritance
- AActor::GetActorEyesViewPoint → AController::GetActorEyesViewPoint → APlayerController::GetActorEyesViewPoint
| Name | GetActorEyesViewPoint |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/PlayerController.h |
| Include Path | #include "GameFramework/PlayerController.h" |
virtual void GetActorEyesViewPoint
(
FVector & OutLocation,
FRotator & OutRotation
) const
Parameters
| Name | Remarks |
|---|---|
| OutLocation | location of view point |
| OutRotation | view rotation of actor. |