Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/remapper/src/deps.ts>three.Object3D#setRotationFromMatrix

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

Calls setFromRotationMatrix(m) on the .quaternion.

Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

Parameters

rotate the quaternion by the rotation component of the matrix.