Options
All
  • Public
  • Public/Protected
  • All
Menu

The HitBix2DService.rayCast function returns this structure.

Hierarchy

  • RayCastResult

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Optional entityHit: Entity
    • Optional t: number

    Returns RayCastResult

Properties

entityHit

entityHit: Entity

Specifies the hit entity, or NONE if no entity is hit.

t

t: number

Specifies a normalized [0..1] distance along a ray. The hit location is: hit = rayStart + (rayEnd-rayStart)*t; If the ray cast starts inside a hit box, t is the exit value.

Static _size

_size: number

Methods

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc