Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
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.
| Name | ShouldComputePerchResult |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h |
| Include Path | #include "GameFramework/CharacterMovementComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp |
virtual bool ShouldComputePerchResult
(
const FHitResult & InHit,
bool bCheckRadius
) const
Whether perching may be possible, such that ComputePerchResult can return a valid result.
Parameters
| Name | Remarks |
|---|---|
| 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(). |