UNPKG

mdx-m3-viewer

Version:

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

28 lines (26 loc) 868 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * An M3 bounding shape. */ class BoundingShape { constructor(boundingshape) { this.bone = boundingshape.bone; this.matrix = boundingshape.matrix; //this.name = bones[boundingshape.bone].name; /* var size = boundingshape.size; var shape; if (boundingshape.shape === 0) { shape = gl.createCube(-size[0], -size[1], -size[2], size[0], size[1], size[2]); } else if (boundingshape.shape === 1) { shape = gl.createSphere(0, 0, 0, 9, 9, size[0]); } else { shape = gl.createCylinder(0, 0, 0, size[0], size[1], 9); } this.shape = shape; */ } } exports.default = BoundingShape; //# sourceMappingURL=boundingshape.js.map