Class Raycaster

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(origin?: Vector3, direction?: Vector3, near?: number, far?: number): Raycaster

Parameters

  • origin?: Vector3 optional
  • direction?: Vector3 optional
  • near?: number optional
  • far?: number optional

Returns

Raycaster

Properties

public far: number

public near: number

public precision: number

public ray: Ray

Methods

public intersectObject(object: Object3D, recursive?: boolean): Intersection[]

Parameters

  • object: Object3D
  • recursive?: boolean optional

Returns

Intersection[]

public intersectObjects(objects: Object3D[], recursive?: boolean): Intersection[]

Parameters

  • objects: Object3D[]
  • recursive?: boolean optional

Returns

Intersection[]

public set(origin: Vector3, direction: Vector3)

Parameters