RealDocs

UCharacterMovementComponent::NavMeshProjectionHeightScaleDown

property Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite

Description

Scale of the capsule's total height used for the downward trace distance when projecting a NavWalking character from the nav mesh down onto the underlying geometry.

Caveats & Gotchas

  • The actual trace distance is CapsuleHeight multiplied by this scale, not an absolute distance in centimetres.
  • Only used when bProjectNavMeshWalking is enabled.
  • If geometry sits further below the nav mesh than this scaled distance reaches, the trace fails and the character falls back to the raw nav mesh height.

Signature

float NavMeshProjectionHeightScaleDown;

Example

Reach further below the nav mesh C++
if (UCharacterMovementComponent* MoveComp = GetCharacterMovement())
{
	MoveComp->NavMeshProjectionHeightScaleDown = 1.5f;
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.