G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FFindFloorResult Struct Reference

Data about the floor for walking movement, used by CharacterMovementComponent. More...

Public Member Functions

Functions
bool GetbBlockingHit () const
 True if there was a blocking hit in the floor test that was NOT in initial penetration. The HitResult can give more info about other circumstances.
bool GetbWalkableFloor () const
 True if the hit found a valid walkable floor.
bool GetbLineTrace () const
 True if the hit found a valid walkable floor using a line trace (rather than a sweep test, which happens when the sweep test fails to yield a walkable surface).
FFindFloorResult & opAssign (FFindFloorResult Other)

Public Attributes

CharacterFloor
float32 LineDist
 The distance to the floor, computed from the trace. Only valid if bLineTrace is true.
FHitResult HitResult
 Hit result of the test that found a floor. Includes more specific data about the point of impact and surface normal at that point.
float32 FloorDist
 The distance to the floor, computed from the swept capsule trace.
Variables
const bool bWalkableFloor
const bool bLineTrace
const bool bBlockingHit

Detailed Description

Data about the floor for walking movement, used by CharacterMovementComponent.

Member Function Documentation

◆ GetbBlockingHit()

bool GetbBlockingHit ( ) const

True if there was a blocking hit in the floor test that was NOT in initial penetration. The HitResult can give more info about other circumstances.

◆ GetbLineTrace()

bool GetbLineTrace ( ) const

True if the hit found a valid walkable floor using a line trace (rather than a sweep test, which happens when the sweep test fails to yield a walkable surface).

◆ GetbWalkableFloor()

bool GetbWalkableFloor ( ) const

True if the hit found a valid walkable floor.

◆ opAssign()

FFindFloorResult & opAssign ( FFindFloorResult Other)

Member Data Documentation

◆ bBlockingHit

const bool bBlockingHit

◆ bLineTrace

const bool bLineTrace

◆ bWalkableFloor

const bool bWalkableFloor

◆ FloorDist

float32 FloorDist

The distance to the floor, computed from the swept capsule trace.

◆ HitResult

FHitResult HitResult

Hit result of the test that found a floor. Includes more specific data about the point of impact and surface normal at that point.

◆ LineDist

float32 LineDist

The distance to the floor, computed from the trace. Only valid if bLineTrace is true.