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.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@2.1.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.