UKismetMathLibrary::GetSlopeDegreeAngles

Returns Slope Pitch and Roll angles in degrees based on the following information:

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h

Include

#include "Kismet/KismetMathLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetMathLibrary.cpp

Syntax

static void GetSlopeDegreeAngles
(
    const FVector & MyRightYAxis,
    const FVector & FloorNormal,
    const FVector & UpVector,
    float & OutSlopePitchDegreeAngle,
    float & OutSlopeRollDegreeAngle
)

Remarks

Returns Slope Pitch and Roll angles in degrees based on the following information:

Parameters

Parameter

Description

MyRightYAxis

Right (Y) direction unit vector of Actor standing on Slope.

FloorNormal

Floor Normal (unit) vector.

UpVector

UpVector of reference frame. OutSlopePitchDegreeAngle Slope Pitch angle (degrees) OutSlopeRollDegreeAngle Slope Roll angle (degrees)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss