RayCaster class

Constructors

Methods

Constructors

Methods

  • Cast a ray

    Parameters

    • ray: Ray

      the ray to cast

    • onlyClosest: boolean = true

      if true, only the closest intersection point is returned

    • isLine: boolean = false
    • triangleSide: TriangleSide = TriangleSide.FRONT

    Returns WasmVector3d[]

    • the list of intersection points
  • Check if ray is inside the object

    Parameters

    • ray: Ray

    Returns boolean

    • true if the point is inside the object
  • Remove the ray caster

    Returns void