diff --git a/maths3d.js b/game-lib-maths.js similarity index 98% rename from maths3d.js rename to game-lib-maths.js index b21b831..a36988a 100644 --- a/maths3d.js +++ b/game-lib-maths.js @@ -700,12 +700,5 @@ Maths3D.Vector3.prototype.cross = function (v) { }; if (typeof module !== 'undefined') { - module.exports = { - Vector2: Maths3D.Vector2, - Vector3: Maths3D.Vector3, - Vector4: Maths3D.Vector4, - Matrix3: Maths3D.Matrix3, - Matrix4: Maths3D.Matrix4, - Color: Maths3D.Color - }; + module.exports = Maths3D; } \ No newline at end of file diff --git a/game-lib.js b/game-lib.js index 2e61d5a..9b073a0 100644 --- a/game-lib.js +++ b/game-lib.js @@ -1,5 +1,5 @@ if (typeof require != 'undefined') { - var Maths3D = require('./maths3d'); + var Maths3D = require('./game-lib-maths.js'); } function GameLib() {} @@ -2610,4 +2610,4 @@ GameLib.D3.prototype.loadScene = function(blenderScene, onLoaded, computeNormals if (typeof module != 'undefined') { module.exports = GameLib.D3; -} +} \ No newline at end of file