UKismetMathLibrary::MakeRelativeTransform

Computes a relative transform of one transform compared to another.

Windows
MacOS
Linux

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 FTransform MakeRelativeTransform
(
    const FTransform & A,
    const FTransform & RelativeTo
)

Remarks

Computes a relative transform of one transform compared to another.

Example: ChildOffset = MakeRelativeTransform(Child.GetActorTransform(), Parent.GetActorTransform()) This computes the relative transform of the Child from the Parent.

Example: ChildOffset = MakeRelativeTransform(Child.GetActorTransform(), Parent.GetActorTransform()) This computes the relative transform of the Child from the Parent.

Returns

The new relative transform

Parameters

Parameter

Description

A

The object's transform

RelativeTo

The transform the result is relative to (in the same space as A)

A

The object's transform

RelativeTo

The transform the result is relative to (in the same space as A)

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