UCharacterMovementComponent::JumpOutOfWaterPitch
#include "GameFramework/CharacterMovementComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWriteAdvancedDisplay
Description
Control pitch angle, in degrees, at or above which the character automatically jumps when exiting water.
Caveats & Gotchas
- • Compared against the controller's control pitch (looking up), not the character's own rotation.
- • Marked AdvancedDisplay in the header, so it's hidden from the default Details panel view unless advanced properties are shown.
- • If left at a very high angle, players who don't look sharply upward while swimming toward shore may not trigger the automatic exit jump.
Signature
float JumpOutOfWaterPitch; Example
Require a steeper look-up angle to auto-exit water C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
MoveComp->JumpOutOfWaterPitch = 25.0f;
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?