UKismetMathLibrary::LessLess_VectorRotator
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the result of vector A rotated by the inverse (transpose) of Rotator B. This is the Blueprint '<<' operator for vector/rotator, used to transform a world-space vector into a local rotator's space.
Caveats & Gotchas
- • This applies the inverse rotation — it is NOT the same as GreaterGreater_VectorRotator (the >> operator). Confusing the two is a common source of subtle transform bugs.
- • In Blueprint this appears as the '<<' (Unrotate Vector) node. The C++ name is less intuitive than the Blueprint name.
- • Equivalent to B.UnrotateVector(A) on an FRotator instance.
Signature
static UE_INL_API FVector LessLess_VectorRotator(FVector A, FRotator B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FVector | The vector to inverse-rotate. | — |
| B | FRotator | The rotator whose inverse is applied. | — |
Return Type
FVector Example
Convert world velocity to actor-local space C++
FVector WorldVelocity = GetVelocity();
FRotator ActorRot = GetActorRotation();
// Transform world-space velocity into actor-local space
FVector LocalVelocity = UKismetMathLibrary::LessLess_VectorRotator(WorldVelocity, ActorRot); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?