unreal.FindFloorResult

class unreal.FindFloorResult(blocking_hit: bool = False, walkable_floor: bool = False, line_trace: bool = False, floor_dist: float = 0.0, line_dist: float = 0.0, hit_result: HitResult = Ellipsis)

Bases: StructBase

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

C++ Source:

  • Module: Engine

  • File: CharacterMovementComponentAsync.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blocking_hit (bool): [Read-Only] 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.

  • floor_dist (float): [Read-Only] The distance to the floor, computed from the swept capsule trace.

  • hit_result (HitResult): [Read-Only] Hit result of the test that found a floor. Includes more specific data about the point of impact and surface normal at that point.

  • line_dist (float): [Read-Only] The distance to the floor, computed from the trace. Only valid if bLineTrace is true.

  • line_trace (bool): [Read-Only] 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).

  • walkable_floor (bool): [Read-Only] True if the hit found a valid walkable floor.

property blocking_hit: bool

[Read-Only] 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.

Type:

(bool)

property floor_dist: float

[Read-Only] The distance to the floor, computed from the swept capsule trace.

Type:

(float)

property hit_result: HitResult

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

Type:

(HitResult)

property line_dist: float

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

Type:

(float)

property line_trace: bool

[Read-Only] 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).

Type:

(bool)

property walkable_floor: bool

[Read-Only] True if the hit found a valid walkable floor.

Type:

(bool)