UKismetMathLibrary::GreaterGreater_VectorRotator
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns vector A rotated by rotator B. The Blueprint 'Rotate Vector' node — transforms a direction or offset vector from one orientation to another using a rotator.
Caveats & Gotchas
- • This applies the full rotation defined by the FRotator (Pitch, Yaw, Roll) in that evaluation order. If you only want to rotate around a single axis, pass a rotator with the other two components set to zero — but be aware of gimbal-lock if chaining multiple rotations: use quaternions (FQuat) for complex sequential rotations.
- • The result is not automatically normalized. If A was a unit vector and B has no scale component, the result remains unit length due to the nature of rotation matrices, but if A is not unit length the result's magnitude equals A's original magnitude.
Signature
static UE_INL_API FVector GreaterGreater_VectorRotator(FVector A, FRotator B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | FVector | The vector to rotate. | — |
| B | FRotator | The rotator to apply. | — |
Return Type
FVector Example
Rotate the actor forward vector by a custom rotator C++
FVector Forward = FVector(1.f, 0.f, 0.f);
FRotator Spin = FRotator(0.f, 45.f, 0.f); // 45 degree yaw
FVector RotatedForward = UKismetMathLibrary::GreaterGreater_VectorRotator(Forward, Spin); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?