UCharacterMovementComponent::ShouldCatchAir

Whether Character should go into falling mode when walking and changing position, based on an old and new floor result (both of which are considered walkable).

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 ShouldCatchAir
(
    const FFindFloorResult & OldFloor,
    const FFindFloorResult & NewFloor
)

Remarks

Whether Character should go into falling mode when walking and changing position, based on an old and new floor result (both of which are considered walkable). Default implementation always returns false.

Returns

true if Character should start falling