UKismetMathLibrary::Matrix_ToQuat

Transform a rotation matrix into a quaternion.

Windows
MacOS
Linux

Warnings

  • rotation part will need to be unit length for this to be right!

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl

Syntax

static FQuat Matrix_ToQuat
(
    const FMatrix & M
)

Remarks

Transform a rotation matrix into a quaternion. (Assumes Matrix represents a transform)

rotation part will need to be unit length for this to be right!

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