ACharacter::OnWalkingOffLedge_Implementation

Event fired when the Character is walking off a surface and is about to fall because CharacterMovement->CurrentFloor became unwalkable.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/Character.h"

Source

/Engine/Source/Runtime/Engine/Private/Character.cpp

Syntax

virtual void OnWalkingOffLedge_Implementation
(
    const FVector & PreviousFloorImpactNormal,
    const FVector & PreviousFloorContactNormal,
    const FVector & PreviousLocation,
    float TimeDelta
)

Remarks

Event fired when the Character is walking off a surface and is about to fall because CharacterMovement->CurrentFloor became unwalkable. If CharacterMovement->MovementMode does not change during this event then the character will automatically start falling afterwards. @note Z velocity is zero during walking movement, and will be here as well. Another velocity can be computed here if desired and will be used when starting to fall.

Parameters

Parameter

Description

PreviousFloorImpactNormal

Normal of the previous walkable floor.

PreviousFloorContactNormal

Normal of the contact with the previous walkable floor.

PreviousLocation

Previous character location before movement off the ledge.

TimeTick

Time delta of movement update resulting in moving off the ledge.

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