FWalkableSlopeOverride

Struct allowing control over "walkable" normals, by allowing a restriction or relaxation of what steepness is normally walkable.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h

Include

#include "Engine/EngineTypes.h"

Syntax

struct FWalkableSlopeOverride

Remarks

Struct allowing control over "walkable" normals, by allowing a restriction or relaxation of what steepness is normally walkable.

Variables

Name Description

Public variable

float

 

WalkableSlopeAngle

Override walkable slope angle (in degrees), applying the rules of the Walkable Slope Behavior.

Public variable

TEnumAsByte < EW ...

 

WalkableSlopeBehavior

Behavior of this surface (whether we affect the walkable slope).

Constructors

Name Description

Public function

FWalkableSlopeOverride()

Public function

FWalkableSlopeOverride

(
    EWalkableSlopeBehavior NewSlopeBeha...,
    float NewSlopeAngle
)

Functions

Name Description

Public function Const

float

 

GetWalkableSlopeAngle()

Gets the slope angle used for the override behavior.

Public function Const

EWalkableSlo ...

 

GetWalkableSlopeBehavior()

Gets the slope override behavior.

Public function Const

float

 

ModifyWalkableFloorZ

(
    float InWalkableFloorZ
)

Given a walkable floor normal Z value, either relax or restrict the value if we override such behavior.

Public function

void

 

SetWalkableSlopeAngle

(
    float NewSlopeAngle
)

Set the slope angle used for the override behavior.

Public function

void

 

SetWalkableSlopeBehavior

(
    EWalkableSlopeBehavior NewSlopeBeha...
)

Set the slope override behavior.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback