FLookAtMatrix::FLookAtMatrix

Creates a view matrix given an eye position, a position to look at, and an up vector.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Matrix.h

Include

#include "Math/Matrix.h"

Source

/Engine/Source/Runtime/Core/Public/Math/Matrix.inl

Syntax

FLookAtMatrix
(
    const FVector & EyePosition,
    const FVector & LookAtPosition,
    const FVector & UpVector
)

Remarks

Creates a view matrix given an eye position, a position to look at, and an up vector. Equivalent of FLookFromMatrix The up vector need not be normalized. This does the same thing as D3DXMatrixLookAtLH.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss