UCharacterMovementComponent::ShouldComputePerchResult

Check if the result of a sweep test (passed in InHit) might be a valid location to perch, in which case we should use ComputePerchResult to validate the location.

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 ShouldComputePerchResult
(
    const FHitResult & InHit,
    bool bCheckRadius
) const

Remarks

Check if the result of a sweep test (passed in InHit) might be a valid location to perch, in which case we should use ComputePerchResult to validate the location.

Returns

Whether perching may be possible, such that ComputePerchResult can return a valid result.

Parameters

Parameter

Description

InHit

Result of the last sweep test before this query.

bCheckRadius

If true, only allow the perch test if the impact point is outside the radius returned by GetValidPerchRadius().

See Also