Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
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.
| Name | MakeRelativeTransform |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
UFUNCTION (BlueprintPure, Meta=(ScriptMethod="MakeRelative", Keywords="convert torelative"),
Category="Math|Transform")
static UE_FTransform MakeRelativeTransform
(
const FTransform & A,
const FTransform & RelativeTo
)
The new relative transform
Parameters
| Name | Remarks |
|---|---|
| A | The object's transform |
| RelativeTo | The transform the result is relative to (in the same space as A) |