unreal.HitResult

class unreal.HitResult(blocking_hit: bool = False, initial_overlap: bool = False, time: float = 0.0, distance: float = 0.0, location: Vector = Ellipsis, impact_point: Vector = Ellipsis, normal: Vector = Ellipsis, impact_normal: Vector = Ellipsis, phys_mat: PhysicalMaterial = Ellipsis, hit_actor: Actor = Ellipsis, hit_component: PrimitiveComponent = Ellipsis, hit_bone_name: Name = 'None', bone_name: Name = 'None', hit_item: int = 0, element_index: int = 0, face_index: int = 0, trace_start: Vector = Ellipsis, trace_end: Vector = Ellipsis)

Bases: StructBase

Structure containing information about one hit of a trace, such as point of impact and surface normal at that point.

C++ Source:

  • Module: Engine

  • File: HitResult.h