Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCharacterMovementComponent
Description
Return true if the 2D distance to the impact point is inside the edge tolerance (CapsuleRadius minus a small rejection threshold). Useful for rejecting adjacent hits when finding a floor or landing spot.
| Name | IsWithinEdgeTolerance |
| 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 IsWithinEdgeTolerance
(
const FVector & CapsuleLocation,
const FVector & TestImpactPoint,
const float CapsuleRadius
) const