RealDocs

UCharacterMovementComponent::K2_GetWalkableFloorZ

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

Description

Returns the minimum Z component of a walkable surface's normal, as a value between 0 and 1. Surfaces whose normal Z falls below this are treated as unwalkable.

Caveats & Gotchas

  • This is the cosine-of-angle representation of the same limit exposed by K2_GetWalkableFloorAngle(); most designers find the angle version more intuitive to reason about.
  • It's a thin Blueprint wrapper around the inline C++ getter GetWalkableFloorZ(); C++ code should call that directly instead.

Signature

float K2_GetWalkableFloorZ() const

Return Type

float

Example

Read the walkable floor Z threshold Blueprint
Call Get Walkable Floor Z on the Character Movement component and compare the Float output directly against a surface normal's Z component from a line trace.

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.