Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Properties

Private entityHandleArg

entityHandleArg: null | Ped | Vehicle | Prop

Private handle

handle: number

Private hitPositionArg

hitPositionArg: Vector3

Private hitSomethingArg

hitSomethingArg: boolean

Private materialArg

materialArg: MaterialHash

Private result

result: number

Private surfaceNormalArg

surfaceNormalArg: Vector3

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

SurfaceNormal

Generated using TypeDoc