UCharacterMovementComponent::PendingLaunchVelocity
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTY()
Description
Temporarily holds the velocity requested by LaunchCharacter() until it's applied at the end of the current movement update.
Caveats & Gotchas
- • Set by LaunchCharacter() rather than something you should assign to directly — call that function instead so the movement mode transitions (e.g. out of walking) happen correctly.
- • Only holds a value briefly between the LaunchCharacter() call and the next movement update consuming it; don't rely on it persisting or reflecting an in-progress launch.
Signature
FVector PendingLaunchVelocity Example
Preferred way to launch a character C++
// Don't set PendingLaunchVelocity directly -- use the Character API instead:
GetCharacterOwner()->LaunchCharacter(FVector(0.f, 0.f, 900.f), false, true);
// Internally this sets CharacterMovementComponent->PendingLaunchVelocity for consumption
// on the next movement update. Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?