UKismetMathLibrary::Quat_Identity
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the identity quaternion (0, 0, 0, 1), representing no rotation. Use this as a safe default or reset value.
Caveats & Gotchas
- • Prefer FQuat::Identity in C++ — this function exists primarily to expose the constant to Blueprints and Python scripting via the ScriptConstant meta tag.
- • The identity quaternion is not the same as a zero quaternion (0,0,0,0); the zero quaternion is invalid for rotations.
Signature
static UE_INL_API FQuat Quat_Identity() Return Type
FQuat Example
Reset a quaternion rotation to identity in C++ C++
FQuat Rotation = UKismetMathLibrary::Quat_Identity();
// Equivalent in pure C++: FQuat Rotation = FQuat::Identity; Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?