Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RaycastResult

Class that represents the result of a raycast.

Hierarchy

  • RaycastResult

Index

Constructors

constructor

  • Create a RaycastResult object that gets the results from a StartShapeTestRay()

    Parameters

    • handle: number

      The handle returned from StartShapeTestRay()

    Returns RaycastResult

Accessors

DidHit

  • get DidHit(): boolean
  • Whether we hit anything.

    Returns boolean

DidHitEntity

  • get DidHitEntity(): boolean
  • Whether the entity hit exists.

    Returns boolean

HitEntity

HitPosition

Material

Result

  • get Result(): number
  • Raycast result's handle.

    Returns number

SurfaceNormal

Generated using TypeDoc