UKismetMathLibrary::Conv_RotatorToTransform
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Creates a FTransform with the given rotation, zero translation, and unit scale. Used as the Blueprint autocast when a Rotator pin is connected to a Transform input.
Caveats & Gotchas
- • The resulting transform has no translation (0,0,0) and identity scale (1,1,1). If you need a transform at a specific location, construct FTransform(InRotator, Location) directly in C++, or use MakeTransform in Blueprint.
- • This is the Blueprint autocast — a Rotator-to-Transform wire in Blueprint calls this silently, discarding any existing translation/scale context on the source side.
Signature
static UE_INL_API FTransform Conv_RotatorToTransform(const FRotator& InRotator); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| InRotator | const FRotator& | The rotation to embed in the transform. | — |
Return Type
FTransform Example
Build a rotation-only transform for socket attachment C++
FRotator SocketRot(0.f, 45.f, 0.f);
FTransform SocketTransform = UKismetMathLibrary::Conv_RotatorToTransform(SocketRot);
// Use SocketTransform as relative transform; translation and scale are identity Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?