UKismetMathLibrary::InvertTransform
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the inverse of the given transform. For example, given a local-to-world transform, this returns the corresponding world-to-local transform.
Caveats & Gotchas
- • Transforms with zero or near-zero scale on any axis cannot be reliably inverted; the result will contain NaN or Inf components.
- • This wraps FTransform::Inverse() — prefer calling that directly in C++ code, this node exists mainly for Blueprint graphs.
Signature
static FTransform InvertTransform(const FTransform& T) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| T | const FTransform& | The transform to invert. | — |
Return Type
FTransform Example
Get a world-to-local transform C++
FTransform LocalToWorld = GetActorTransform();
FTransform WorldToLocal = UKismetMathLibrary::InvertTransform(LocalToWorld); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?