Navigation
API > API/Runtime > API/Runtime/Engine
Struct allowing control over "walkable" normals, by allowing a restriction or relaxation of what steepness is normally walkable.
| Name | FWalkableSlopeOverride |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineTypes.h |
| Include Path | #include "Engine/EngineTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FWalkableSlopeOverride
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Engine/EngineTypes.h | |||
FWalkableSlopeOverride
(
EWalkableSlopeBehavior NewSlopeBehavior, |
Engine/EngineTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| WalkableSlopeAngle | float | Override walkable slope angle (in degrees), applying the rules of the Walkable Slope Behavior. | Engine/EngineTypes.h |
|
| WalkableSlopeBehavior | TEnumAsByte< EWalkableSlopeBehavior > | Behavior of this surface (whether we affect the walkable slope). | Engine/EngineTypes.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedSlopeAngle | float | Cached angle for which we computed a cosine. | Engine/EngineTypes.h | |
| CachedSlopeCos | float | Cached cosine of angle. | Engine/EngineTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetWalkableSlopeAngle() |
Gets the slope angle used for the override behavior. | Engine/EngineTypes.h | |
EWalkableSlopeBehavior GetWalkableSlopeBehavior() |
Gets the slope override behavior. | Engine/EngineTypes.h | |
float ModifyWalkableFloorZ
(
float InWalkableFloorZ |
Given a walkable floor normal Z value, either relax or restrict the value if we override such behavior. | Engine/EngineTypes.h | |
void SetWalkableSlopeAngle
(
float NewSlopeAngle |
Set the slope angle used for the override behavior. | Engine/EngineTypes.h | |
void SetWalkableSlopeBehavior
(
EWalkableSlopeBehavior NewSlopeBehavior |
Set the slope override behavior. | Engine/EngineTypes.h |