RealDocs

UCharacterMovementComponent::K2_GetWalkableFloorAngle

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

Description

Returns the maximum slope angle, in degrees, that the character can walk on without sliding off. This is the Blueprint-callable wrapper around the inline C++ getter GetWalkableFloorAngle().

Caveats & Gotchas

  • This is a thin Blueprint wrapper around the inline C++ getter GetWalkableFloorAngle(); C++ code should call GetWalkableFloorAngle() directly instead of this Blueprint node.
  • The value is always kept in sync with WalkableFloorZ — SetWalkableFloorAngle() and SetWalkableFloorZ() each recompute the other, so the two can't be set independently.

Signature

float K2_GetWalkableFloorAngle() const

Return Type

float

Example

Read the walkable slope limit Blueprint
Call Get Walkable Floor Angle on the Character Movement component to read a Float output, then compare it against a slope angle computed from a floor trace normal.

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.