FLookFromMatrix::FLookFromMatrix

Creates a view matrix given an eye position, a direction to look in, 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

FLookFromMatrix
(
    const FVector & EyePosition,
    const FVector & LookDirection,
    const FVector & UpVector
)

Remarks

Creates a view matrix given an eye position, a direction to look in, and an up vector. Direction or up vectors need not be normalized. This does the same thing as FLookAtMatrix, except without completely destroying precision when position is large, Always use this instead of e.g., FLookAtMatrix;

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