UCharacterMovementComponent::ShouldJumpOutOfWater

Determine whether the Character should jump when exiting water.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual bool ShouldJumpOutOfWater
(
    FVector & JumpDir
)

Remarks

Determine whether the Character should jump when exiting water.

Returns

true if Pawn should jump out of water

Parameters

Parameter

Description

JumpDir

is the desired direction to jump out of water