RealDocs

UKismetMathLibrary::Quat_Inversed

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns the inverse (conjugate for unit quaternions) of the given quaternion. Multiplying a quaternion by its inverse yields the identity rotation.

Caveats & Gotchas

  • For unit quaternions the inverse equals the conjugate (-X, -Y, -Z, W). If Q is not normalized, the result is the true mathematical inverse (conjugate / squared magnitude), which may not represent a pure rotation.
  • A common use is computing the delta rotation between two orientations: DeltaQ = TargetQ * InverseQ. The multiplication order matters — quaternion multiplication is not commutative.

Signature

static UE_INL_API FQuat Quat_Inversed(const FQuat& Q);

Parameters

Name Type Description Default
Q const FQuat& The quaternion to invert.

Return Type

FQuat

Example

Compute delta rotation between two actors C++
FQuat ActorA = GetActorQuat();
FQuat ActorB = OtherActor->GetActorQuat();

// DeltaQ rotates from ActorA's frame to ActorB's frame
FQuat InvA  = UKismetMathLibrary::Quat_Inversed(ActorA);
FQuat DeltaQ = ActorB * InvA;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.