UCharacterMovementComponent::DoJump

Perform jump.

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 DoJump
(
    bool bReplayingMoves
)

Remarks

Perform jump. Called by Character when a jump has been detected because Character->bPressedJump was true. Checks Character->CanJump().

that you should usually trigger a jump through Character::Jump() instead.

Returns

True if the jump was triggered successfully.

Parameters

Parameter

Description

bReplayingMoves

true if this is being done as part of replaying moves on a locally controlled client after a server correction.