UNPKG

mdx-m3-viewer

Version:

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

16 lines (14 loc) 327 B
import {quat} from 'gl-matrix'; import {SkeletalNode} from '../../node'; /** * An MDX node. */ export default class MdxNode extends SkeletalNode { /** * @param {quat} rotation */ convertBasis(rotation) { quat.rotateY(rotation, rotation, -Math.PI / 2); quat.rotateX(rotation, rotation, -Math.PI / 2); } }