Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetMathLibrary
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 |
static FTransform MakeRelativeTransform
&40;
const FTransform & A,
const FTransform & RelativeTo
&41;
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. The new relative transform
Parameters
| Name | 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) |