Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
Include |
#include "Kismet/KismetMathLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
static FTransform MakeRelativeTransform
(
const FTransform & A,
const FTransform & RelativeTo
)
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.
The new relative transform
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) |