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).

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss