Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/deps.ts>three.Raycaster#intersectObject

A framework for Beat Saber map scripting.
Go to Latest
method three.Raycaster.prototype.intersectObject
Re-export
import { three } from "https://deno.land/x/remapper@2.1.0/src/deps.ts";
const { Raycaster } = three;

Checks all intersection between the ray and the object with or without the descendants. Intersections are returned sorted by distance, closest first.

Type Parameters

TIntersected extends Object3D

Parameters

object: Object3D

The object to check for intersection with the ray.

optional
recursive: boolean

If true, it also checks all descendants. Otherwise it only checks intersecton with the object. Default is true.

optional
optionalTarget: Array<Intersection<TIntersected>>

(optional) target to set the result. Otherwise a new Array is instantiated. If set, you must clear this array prior to each call (i.e., array.length = 0;).