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

x/threejs_4_deno/src/core/Raycaster.js>Raycaster#set

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Raycaster.prototype.set
import { Raycaster } from "https://deno.land/x/threejs_4_deno@v121/src/core/Raycaster.js";

Updates the ray with a new origin and direction.

Parameters

origin: Vector3

The origin vector where the ray casts from.

direction: Vector3

The normalized direction vector that gives direction to the ray.