UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

13 lines (11 loc) 309 B
import { quat } from 'gl-matrix'; import { SkeletalNode } from '../../node'; /** * An MDX node. */ export default class MdxNode extends SkeletalNode { convertBasis(rotation: quat) { quat.rotateY(rotation, rotation, -Math.PI / 2); quat.rotateX(rotation, rotation, -Math.PI / 2); } }