RealDocs

UCharacterMovementComponent::OldBaseQuat

property Engine Since unknown
#include "GameFramework/CharacterMovementComponent.h"
Access: protected Specifiers: UPROPERTY(Transient)

Description

Cached rotation of the movement base from the previous frame, used by UpdateBasedMovement() to detect whether the base moved or rotated since the last update.

Caveats & Gotchas

  • Transient and internal bookkeeping — it isn't meant to be read or written by game code; use GetMovementBase() and the base's own transform if you need current base orientation.
  • Paired with OldBaseLocation; both must be updated together or the moved-base detection in UpdateBasedMovement() gives inconsistent results.

Signature

FQuat OldBaseQuat

Example

Internal usage pattern C++
// Inside UpdateBasedMovement(), roughly:
const FQuat NewBaseQuat = MovementBaseUtility::GetMovementBaseRotation(MovementBase, MovementBaseBoneName);
if (!NewBaseQuat.Equals(OldBaseQuat))
{
    // Base rotated since last tick -- account for it before moving the character
}
OldBaseQuat = NewBaseQuat;

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.