Parcourir la source

LocalDev in ES6

sebavan il y a 6 ans
Parent
commit
c06db2d1ef
100 fichiers modifiés avec 61043 ajouts et 89141 suppressions
  1. 1 8
      .vscode/tasks.json
  2. 60336 88552
      Playground/babylon.d.txt
  3. 20 11
      Tools/DevLoader/BabylonLoader.js
  4. 3 2
      Tools/Gulp/gulpfile.js
  5. 3 2
      Tools/Gulp/helpers/gulp-processShaders.js
  6. 71 37
      Tools/Gulp/helpers/gulp-remapPaths.js
  7. 0 1
      Tools/Gulp/tasks/gulpTasks-libraries.js
  8. 19 1
      Tools/Gulp/tasks/gulpTasks-localRun.js
  9. 1 1
      Tools/Gulp/tasks/gulpTasks-remapPaths.js
  10. 63 0
      Tools/Gulp/tasks/gulpTasks-watchCore.js
  11. 2 2
      Tools/Gulp/tasks/gulpTasks-watch.js
  12. 2 2
      src/Actions/action.ts
  13. 5 5
      src/Actions/actionEvent.ts
  14. 9 9
      src/Actions/actionManager.ts
  15. 3 3
      src/Actions/directActions.ts
  16. 1 1
      src/Actions/directAudioActions.ts
  17. 4 4
      src/Actions/interpolateValueAction.ts
  18. 3 3
      src/Animations/animatable.ts
  19. 9 9
      src/Animations/animation.ts
  20. 4 4
      src/Animations/animationGroup.ts
  21. 1 1
      src/Animations/animationPropertiesOverride.ts
  22. 1 1
      src/Animations/easing.ts
  23. 3 3
      src/Animations/runtimeAnimation.ts
  24. 4 4
      src/Audio/analyser.ts
  25. 5 5
      src/Audio/audioEngine.ts
  26. 8 8
      src/Audio/audioSceneComponent.ts
  27. 11 11
      src/Audio/sound.ts
  28. 3 3
      src/Audio/soundTrack.ts
  29. 2 2
      src/Audio/weightedsound.ts
  30. 7 7
      src/Behaviors/Cameras/autoRotationBehavior.ts
  31. 9 9
      src/Behaviors/Cameras/bouncingBehavior.ts
  32. 12 12
      src/Behaviors/Cameras/framingBehavior.ts
  33. 7 7
      src/Behaviors/Meshes/attachToBoxBehavior.ts
  34. 3 3
      src/Behaviors/Meshes/fadeInOutBehavior.ts
  35. 5 5
      src/Behaviors/Meshes/multiPointerScaleBehavior.ts
  36. 10 10
      src/Behaviors/Meshes/pointerDragBehavior.ts
  37. 10 10
      src/Behaviors/Meshes/sixDofDragBehavior.ts
  38. 1 1
      src/Behaviors/behavior.ts
  39. 2 2
      src/Behaviors/index.ts
  40. 8 8
      src/Bones/bone.ts
  41. 3 3
      src/Bones/boneIKController.ts
  42. 4 4
      src/Bones/boneLookController.ts
  43. 13 13
      src/Bones/skeleton.ts
  44. 6 6
      src/Cameras/Inputs/arcRotateCameraGamepadInput.ts
  45. 8 8
      src/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.ts
  46. 6 6
      src/Cameras/Inputs/arcRotateCameraMouseWheelInput.ts
  47. 7 7
      src/Cameras/Inputs/arcRotateCameraPointersInput.ts
  48. 3 3
      src/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.ts
  49. 9 9
      src/Cameras/Inputs/flyCameraKeyboardInput.ts
  50. 8 8
      src/Cameras/Inputs/flyCameraMouseInput.ts
  51. 5 5
      src/Cameras/Inputs/freeCameraDeviceOrientationInput.ts
  52. 7 7
      src/Cameras/Inputs/freeCameraGamepadInput.ts
  53. 9 9
      src/Cameras/Inputs/freeCameraKeyboardMoveInput.ts
  54. 6 6
      src/Cameras/Inputs/freeCameraMouseInput.ts
  55. 7 7
      src/Cameras/Inputs/freeCameraTouchInput.ts
  56. 5 5
      src/Cameras/Inputs/freeCameraVirtualJoystickInput.ts
  57. 5 5
      src/Cameras/Stereoscopic/anaglyphArcRotateCamera.ts
  58. 5 5
      src/Cameras/Stereoscopic/anaglyphFreeCamera.ts
  59. 5 5
      src/Cameras/Stereoscopic/anaglyphGamepadCamera.ts
  60. 5 5
      src/Cameras/Stereoscopic/anaglyphUniversalCamera.ts
  61. 5 5
      src/Cameras/Stereoscopic/stereoscopicArcRotateCamera.ts
  62. 5 5
      src/Cameras/Stereoscopic/stereoscopicFreeCamera.ts
  63. 5 5
      src/Cameras/Stereoscopic/stereoscopicGamepadCamera.ts
  64. 5 5
      src/Cameras/Stereoscopic/stereoscopicUniversalCamera.ts
  65. 1 1
      src/Cameras/VR/vrCameraMetrics.ts
  66. 5 5
      src/Cameras/VR/vrDeviceOrientationArcRotateCamera.ts
  67. 5 5
      src/Cameras/VR/vrDeviceOrientationFreeCamera.ts
  68. 3 3
      src/Cameras/VR/vrDeviceOrientationGamepadCamera.ts
  69. 28 28
      src/Cameras/VR/vrExperienceHelper.ts
  70. 15 15
      src/Cameras/VR/webVRCamera.ts
  71. 5 5
      src/Cameras/XR/webXRCamera.ts
  72. 3 3
      src/Cameras/XR/webXREnterExitUI.ts
  73. 7 7
      src/Cameras/XR/webXRExperienceHelper.ts
  74. 5 5
      src/Cameras/XR/webXRInput.ts
  75. 2 2
      src/Cameras/XR/webXRManagedOutputCanvas.ts
  76. 8 8
      src/Cameras/XR/webXRSessionManager.ts
  77. 16 16
      src/Cameras/arcRotateCamera.ts
  78. 5 5
      src/Cameras/arcRotateCameraInputsManager.ts
  79. 21 21
      src/Cameras/camera.ts
  80. 3 3
      src/Cameras/cameraInputsManager.ts
  81. 3 3
      src/Cameras/deviceOrientationCamera.ts
  82. 9 9
      src/Cameras/flyCamera.ts
  83. 2 2
      src/Cameras/flyCameraInputsManager.ts
  84. 7 7
      src/Cameras/followCamera.ts
  85. 9 9
      src/Cameras/freeCamera.ts
  86. 5 5
      src/Cameras/freeCameraInputsManager.ts
  87. 3 3
      src/Cameras/gamepadCamera.ts
  88. 4 4
      src/Cameras/index.ts
  89. 4 4
      src/Cameras/targetCamera.ts
  90. 5 5
      src/Cameras/touchCamera.ts
  91. 4 4
      src/Cameras/universalCamera.ts
  92. 3 3
      src/Cameras/virtualJoysticksCamera.ts
  93. 3 3
      src/Collisions/collider.ts
  94. 6 6
      src/Collisions/collisionCoordinator.ts
  95. 6 6
      src/Collisions/pickingInfo.ts
  96. 5 5
      src/Culling/Octrees/octree.ts
  97. 4 4
      src/Culling/Octrees/octreeBlock.ts
  98. 8 8
      src/Culling/Octrees/octreeSceneComponent.ts
  99. 4 4
      src/Culling/boundingBox.ts
  100. 0 0
      src/Culling/boundingInfo.ts

+ 1 - 8
.vscode/tasks.json

@@ -36,18 +36,11 @@
                 "background": {
                     "activeOnStart": true,
                     "beginsPattern": "Starting \\'watch\\'",
-                    "endsPattern": "Entrypoint babylonjs-inspector"
+                    "endsPattern": "Watching for file changes"
                 }
             }
         },
         {
-            "taskName": "typescript-all",
-            "isBuildCommand": true,
-            "problemMatcher": [
-                "$tsc"
-            ]
-        },
-        {
             "label": "serve-viewer",
             "type": "npm",
             "script": "start:server",

Fichier diff supprimé car celui-ci est trop grand
+ 60336 - 88552
Playground/babylon.d.txt


+ 20 - 11
Tools/DevLoader/BabylonLoader.js

@@ -131,8 +131,6 @@ var BABYLONDEVTOOLS;
         }
 
         Loader.prototype.loadCss = function(url) {
-            var head = document.getElementsByTagName('head')[0];
-
             var style = document.createElement('link');
             style.href = url;
             style.rel = "stylesheet";
@@ -165,9 +163,19 @@ var BABYLONDEVTOOLS;
             }
         }
 
-        Loader.prototype.loadModule = function(module) {
+        Loader.prototype.loadCoreDev = async function() {
+            // Es6 core import
+            await import("/.temp/es6LocalDev/core/legacy/legacy.js")
+        }
+
+        Loader.prototype.loadModule = async function(module) {
             for (var i = 0; i < module.libraries.length; i++) {
-                this.loadLibrary(module.libraries[i], module);
+                if (!useDist && module.isCore) {
+                    await this.loadCoreDev();
+                }
+                else {
+                    this.loadLibrary(module.libraries[i], module);
+                }
             }
         }
 
@@ -189,10 +197,10 @@ var BABYLONDEVTOOLS;
             }
         }
 
-        Loader.prototype.loadBJSScripts = function(settings) {
+        Loader.prototype.loadBJSScripts = async function(settings) {
             // Load all the modules from the config.json.
             for (var i = 0; i < settings.modules.length; i++) {
-                this.loadModule(settings[settings.modules[i]]);
+                await this.loadModule(settings[settings.modules[i]]);
             }
         }
 
@@ -203,12 +211,13 @@ var BABYLONDEVTOOLS;
             }
             getJson('/Tools/Gulp/config.json',
                 function(data) {
-                    self.loadBJSScripts(data);
-                    if (dependencies) {
-                        self.loadScripts(dependencies);
-                    }
+                    self.loadBJSScripts(data).then(() => {
+                        if (dependencies) {
+                            self.loadScripts(dependencies);
+                        }
 
-                    self.dequeue();
+                        self.dequeue();
+                    });
                 },
                 function(reason) {
                     console.error(reason);

+ 3 - 2
Tools/Gulp/gulpfile.js

@@ -9,7 +9,8 @@ require("./tasks/gulpTasks-tsLint");
 require("./tasks/gulpTasks-netlify");
 require("./tasks/gulpTasks-whatsNew");
 require("./tasks/gulpTasks-localRun");
-require("./tasks/gulpTasks-watch");
+require("./tasks/gulpTasks-watchLibraries");
+require("./tasks/gulpTasks-watchCore");
 require("./tasks/gulpTasks-typedoc");
 require("./tasks/gulpTasks-intellisense");
 require("./tasks/gulpTasks-tests");
@@ -43,7 +44,7 @@ gulp.task("typedoc-check", gulp.series("core", "gui", "loaders", "serializers",
 /**
  * Combine Webserver and Watch as long as vscode does not handle multi tasks.
  */
-gulp.task("run", gulp.series("watch", "webserver"));
+gulp.task("run", gulp.series("watchCore", "watchLibraries", "webserver"));
 
 /**
  * Do it all (Build).

+ 3 - 2
Tools/Gulp/helpers/gulp-processShaders.js

@@ -103,8 +103,9 @@ function main(isCore) {
             });
 
             // Chose shader store.
-            const shaderStore = directory.indexOf("ShadersInclude") > -1 ? "IncludesShadersStore" : "ShadersStore";
-            const effectLocation = isCore ? "Materials/effect" : "babylonjs";
+            const isInclude = directory.indexOf("ShadersInclude") > -1;
+            const shaderStore = isInclude ? "IncludesShadersStore" : "ShadersStore";
+            const effectLocation = isCore ? (isInclude ? "../../Materials/effect" : "../Materials/effect") : "babylonjs";
 
             // Fill template in.
             let tsContent = tsShaderTemplate.replace('##EFFECTLOCATION_PLACEHOLDER##', effectLocation);

+ 71 - 37
Tools/Gulp/helpers/gulp-remapPaths.js

@@ -1,47 +1,81 @@
 'use strict';
 
 var through = require('through2');
+var path = require('path');
+var fs = require('fs');
 var PluginError = require('plugin-error');
 
-function modifyPath(str, opts) {
-    // opts = opts || {};
-
-    // str += "";
-
-    // // Start process by extracting all lines.
-    // let lines = str.split('\n');
-
-    // // Let's go line by line and replace the imports sources by their resolved locations
-    // for (let index = 0; index < lines.length; index++) {
-    //     let line = lines[index];
-
-    //     // Replace Static Readonly declaration for Legacy TS Version compat
-    //     var regexVar = /(.*)import .*"(.*)";/g;
-    //     var match = regexVar.exec(line);
-    //     if (!match) {
-    //         continue;
-    //     }
-
-    //     // Extract the typescript node based import location
-    //     const location = match[2];
-    //     const newLocation = location;
-
-    //     // Adds file relative path
-    //     if (!location.startsWith(".")) {
-
-    //     }
-
-    //     // Adds Extension
+function modifyPath(str, filePath, opts) {
+    opts = opts || {};
+    str += "";
+
+    // Start process by extracting all lines.
+    let lines = str.split('\n');
+
+    // Let's go line by line and replace the imports sources by their resolved locations
+    for (let index = 0; index < lines.length; index++) {
+        let line = lines[index];
+
+        // Replace Static Readonly declaration for Legacy TS Version compat
+        var regexVar = /(.*)import .*"(.*)";/g;
+        var match = regexVar.exec(line);
+        if (match) {
+            // Extract the typescript node based import location
+            const location = match[2];
+            let newLocation = location;
+    
+            // Adds file relative path
+            const lastSlash = location.lastIndexOf("/");
+            let pathToTest = location;
+            if (lastSlash > -1) {
+                pathToTest = location.slice(lastSlash + 1);
+            }
+            if (pathToTest.match(/^[A-Z].*/g)) {
+                if (!pathToTest.startsWith("I") || pathToTest === "Instrumentation" || pathToTest === "Inputs") {
+                    newLocation += "/index";
+                }
+            }
+
+            if (!location.startsWith(".")) {
+                const rel = path.relative(filePath, opts.basePath);
+                const count = (rel.match(/..\\/g) || []).length;
+                if (count === 0) {
+                    newLocation = "./" + newLocation;
+                }
+                else {
+                    for (let i = 0; i < count; i++) {
+                        newLocation = "../" + newLocation;
+                    }
+                }
+            }
+    
+            // Replace the location by the new one
+            line = line.replace('"' + location + '"', '"' + newLocation + '"');
+        }
 
+        regexVar = /export \* from "(.*)";/g;
+        match = regexVar.exec(line);
+        if (match) {
+            // Extract the typescript node based import location
+            const location = match[1];
+            let newLocation = location;
+
+            if (location.match(/\.\/[A-Z].*/g)) {
+                if (location[2] !== "I" || location === "./Instrumentation" || location === "./Inputs") {
+                    newLocation += "/index";
+                }
+            }
+
+            // Replace the location by the new one
+            line = line.replace('"' + location + '"', '"' + newLocation + '"');
+        }
 
-    //     // Replace the location by the new one
-    //     line = line.replace('"' + location + '"', '"' + newLocation + '"');
-    //     lines[index] = line;
-    // }
+        lines[index] = line;
+    }
 
-    // // Recreate the file.
-    // str = lines.join('\n');
-    return Date.now() + str;
+    // Recreate the file.
+    str = lines.join('\n');
+    return str;
 }
 
 function main(options, func) {
@@ -53,7 +87,7 @@ function main(options, func) {
         if (file.isStream()) {
             cb(new PluginError("Modify Import Paths", "Streaming not supported."));
         }
-        file.contents = Buffer.from(func(file.contents.toString(), options));
+        file.contents = Buffer.from(func(file.contents.toString(), file.path, options));
         this.push(file);
         return cb();
     });

+ 0 - 1
Tools/Gulp/tasks/gulpTasks-libraries.js

@@ -55,7 +55,6 @@ var buildExternalLibrariesMultiEntry = function(libraries, settings, isMin) {
     if (isMin) {
         delete wpConfig.devtool;
         wpConfig.output.filename = isMinOutputName ? '[name].min.js' : '[name].js';
-        wpConfig.output.devtoolModuleFilenameTemplate
     }
     else {
         // Map Output

+ 19 - 1
Tools/Gulp/tasks/gulpTasks-localRun.js

@@ -2,12 +2,17 @@
 var gulp = require("gulp");
 var connect = require("gulp-connect");
 var minimist = require("minimist");
+var fs = require('fs');
+var path = require('path');
 
 // Comand line parsing.
 var commandLineOptions = minimist(process.argv.slice(2), {
     boolean: ["public"]
 });
 
+// Skip known extensions.
+var skipExtensions = [".js", ".glb", ".gltf", ".bin", ".html", ".gif", ".jpg", ".jpeg", ".png", ".dds", ".babylon", "ktx"];
+
 /**
  * Embedded webserver for test convenience.
  */
@@ -15,7 +20,20 @@ gulp.task("webserver", function() {
     var options = {
         root: "../../.",
         port: 1338,
-        livereload: false
+        livereload: false,
+        middleware: function(connect, opt) {
+            return [function (req, res, next) {
+                var extension = path.extname(decodeURIComponent(req.originalUrl));
+                if (req.originalUrl.startsWith("/.temp/es6LocalDev/core/") && skipExtensions.indexOf(extension) === -1) {
+                    // Append .js for es6 modules.
+                    if (!fs.existsSync("../../" + req.originalUrl)) {
+                        req.url += ".js";
+                    }
+                }
+                next();
+              }
+            ]
+        }
     };
 
     if (commandLineOptions.public) {

+ 1 - 1
Tools/Gulp/tasks/gulpTasks-remapPaths.js

@@ -17,6 +17,6 @@ gulp.task("remapPaths", function() {
     const path = commandLineOptions.path;
 
     return gulp.src(path + "/**/*.ts", { base: path })
-        .pipe(remapPaths())
+        .pipe(remapPaths({ basePath: path }))
         .pipe(gulp.dest(path));
 });

+ 63 - 0
Tools/Gulp/tasks/gulpTasks-watchCore.js

@@ -0,0 +1,63 @@
+// Import Dependencies.
+var gulp = require("gulp");
+let shelljs = require('shelljs');
+var del = require("del");
+
+// Import Helpers.
+var processShaders = require("../helpers/gulp-processShaders");
+var uncommentShaders = require('../helpers/gulp-removeShaderComments');
+var rmDir = require('../helpers/gulp-rmDir');
+
+// Read the full config.
+var config = require("../config.json");
+
+/**
+ * Clean shader ts files.
+ */
+var cleanShaders = function(settings) {
+    return del([settings.srcDirectory + "**/*.fx.ts"]);
+}
+
+/**
+ * Watch ts files and fire repective tasks.
+ */
+gulp.task("watchCore", async function startWatch() {
+    var module = "core";
+    var settings = config[module].build;
+    var isCore = config[module].isCore;
+    var library = config[module].libraries[0];
+
+    // Clean shaders
+    await cleanShaders(settings);
+
+    // Generate shaders.
+    gulp.src(settings.srcDirectory + "**/*.fx")
+        .pipe(uncommentShaders())
+        .pipe(processShaders(isCore))
+
+    // Clean Folder.
+    rmDir('../../.temp/es6LocalDev/core');
+
+    // Launch TSC.
+    const options = {
+        cwd: "../../src/",
+        async: true,
+        verbose: true
+    };
+    shelljs.exec("tsc --declaration false --target es5 --module es2015 --outDir ../.temp/es6LocalDev/core -w", options, function(code, stdout, stderr) {
+        if (stderr) {
+            console.log(stderr);
+        }
+        if (stdout) {
+            console.log(stdout);
+        }
+    });
+
+    // Launch shader watch    
+    gulp.watch(settings.srcDirectory + "**/*.fx", { interval: 1000 }, function() {
+        console.log(library.output + ": Shaders.");
+        return gulp.src(settings.srcDirectory + "**/*.fx")
+            .pipe(uncommentShaders())
+            .pipe(processShaders(isCore));
+    });
+});

+ 2 - 2
Tools/Gulp/tasks/gulpTasks-watch.js

@@ -12,13 +12,13 @@ var config = require("../config.json");
 /**
  * Watch ts files and fire repective tasks.
  */
-gulp.task("watch", function startWatch() {
+gulp.task("watchLibraries", function startWatch() {
     var tasks = [];
 
     config.modules.map(function(module) {
         var settings = config[module].build;
         var isCore = config[module].isCore;
-        if (settings && settings.webpack) {
+        if (!isCore && settings && settings.webpack) {
             for (var index = 0; index < config[module].libraries.length; index++) {
                 var library = config[module].libraries[index];
                 if (library.preventLoadLibrary) { 

+ 2 - 2
src/Actions/action.ts

@@ -1,5 +1,5 @@
-import { Observable } from "Misc/observable";
-import { Vector2, Vector3, Color3, Color4 } from "Maths/math";
+import { Observable } from "../Misc/observable";
+import { Vector2, Vector3, Color3, Color4 } from "../Maths/math";
 import { Condition } from "./condition";
 
 declare type Scene = import("scene").Scene;

+ 5 - 5
src/Actions/actionEvent.ts

@@ -1,8 +1,8 @@
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Nullable } from "types";
-import { Sprite } from "Sprites/sprite";
-import { Scene } from "scene";
-import { Vector2 } from "Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Nullable } from "../types";
+import { Sprite } from "../Sprites/sprite";
+import { Scene } from "../scene";
+import { Vector2 } from "../Maths/math";
 
     /**
      * ActionEvent is the event being sent when an action is triggered.

+ 9 - 9
src/Actions/actionManager.ts

@@ -1,17 +1,17 @@
-import { Nullable } from "types";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Scene } from "scene";
-import { Vector3, Vector4, Color3, Color4 } from "Maths/math";
+import { Nullable } from "../types";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Scene } from "../scene";
+import { Vector3, Vector4, Color3, Color4 } from "../Maths/math";
 
 import { Condition, ValueCondition } from "./condition";
 import { Action } from "./action";
 import { DoNothingAction } from "./directActions";
 
-import { Engine } from "Engines/engine";
-import { Constants } from "Engines/constants";
-import { Tools } from "Misc/tools";
-import { ActionEvent } from "Actions/actionEvent";
-import { Logger } from "Misc/logger";
+import { Engine } from "../Engines/engine";
+import { Constants } from "../Engines/constants";
+import { Tools } from "../Misc/tools";
+import { ActionEvent } from "../Actions/actionEvent";
+import { Logger } from "../Misc/logger";
 
     /**
      * Action Manager manages all events to be triggered on a given mesh or the global scene.

+ 3 - 3
src/Actions/directActions.ts

@@ -1,8 +1,8 @@
-import { Logger } from "Misc/logger";
-import { Vector3 } from "Maths/math";
+import { Logger } from "../Misc/logger";
+import { Vector3 } from "../Maths/math";
 import { Action } from "./action";
 import { Condition } from "./condition";
-import { Constants } from "Engines/constants";
+import { Constants } from "../Engines/constants";
 
 declare type ActionEvent = import("./actionEvent").ActionEvent;
 

+ 1 - 1
src/Actions/directAudioActions.ts

@@ -1,7 +1,7 @@
 import { Action } from "./action";
 import { Condition } from "./condition";
 
-import { Sound } from "Audio/sound";
+import { Sound } from "../Audio/sound";
 
     /**
      * This defines an action helpful to play a defined sound on a triggered action.

+ 4 - 4
src/Actions/interpolateValueAction.ts

@@ -1,10 +1,10 @@
 import { Action } from "./action";
 import { Condition } from "./condition";
 
-import { Logger } from "Misc/logger";
-import { Observable } from "Misc/observable";
-import { Color3, Vector3, Matrix, Quaternion } from "Maths/math";
-import { Animation } from "Animations/animation";
+import { Logger } from "../Misc/logger";
+import { Observable } from "../Misc/observable";
+import { Color3, Vector3, Matrix, Quaternion } from "../Maths/math";
+import { Animation } from "../Animations/animation";
 
     /**
      * This defines an action responsible to change the value of a property

+ 3 - 3
src/Animations/animatable.ts

@@ -1,9 +1,9 @@
 import { Animation } from "./animation";
 import { RuntimeAnimation } from "./runtimeAnimation";
 
-import { Nullable } from "types";
-import { Observable } from "Misc/observable";
-import { Scene } from "scene";
+import { Nullable } from "../types";
+import { Observable } from "../Misc/observable";
+import { Scene } from "../scene";
 
     /**
      * Class used to store an actual running animation

+ 9 - 9
src/Animations/animation.ts

@@ -2,15 +2,15 @@ import { Animatable } from "./animatable";
 import { IEasingFunction, EasingFunction } from "./easing";
 import { RuntimeAnimation } from "./runtimeAnimation";
 
-import { Path2, Vector3, Quaternion, Vector2, Color3, Size, Matrix } from "Maths/math";
-import { Scalar } from "Maths/math.scalar";
-
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { IAnimatable } from "Misc/tools";
-import { Node } from "node";
-import { Texture } from "Materials/Textures/texture";
-import { SerializationHelper } from "Misc/decorators";
+import { Path2, Vector3, Quaternion, Vector2, Color3, Size, Matrix } from "../Maths/math";
+import { Scalar } from "../Maths/math.scalar";
+
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { IAnimatable } from "../Misc/tools";
+import { Node } from "../node";
+import { Texture } from "../Materials/Textures/texture";
+import { SerializationHelper } from "../Misc/decorators";
 
     /**
      * Represents the range of an animation

+ 4 - 4
src/Animations/animationGroup.ts

@@ -1,10 +1,10 @@
 import { Animatable } from "./animatable";
 import { IAnimationKey, Animation } from "./animation";
 
-import { Scene, IDisposable } from "scene";
-import { Observable } from "Misc/observable";
-import { Nullable } from "types";
-import { Engine } from "Engines/engine";
+import { Scene, IDisposable } from "../scene";
+import { Observable } from "../Misc/observable";
+import { Nullable } from "../types";
+import { Engine } from "../Engines/engine";
     /**
      * This class defines the direct association between an animation and a target
      */

+ 1 - 1
src/Animations/animationPropertiesOverride.ts

@@ -1,4 +1,4 @@
-import { Animation } from "Animations/animation";
+import { Animation } from "../Animations/animation";
 
     /**
      * Class used to override all child animations of a given target

+ 1 - 1
src/Animations/easing.ts

@@ -1,4 +1,4 @@
-import { BezierCurve } from "Maths/math";
+import { BezierCurve } from "../Maths/math";
 
     /**
      * This represents the main contract an easing function should follow.

+ 3 - 3
src/Animations/runtimeAnimation.ts

@@ -1,9 +1,9 @@
-import { DeepImmutable } from "types";
-import { Quaternion, Vector3, Vector2, Size, Color3, Matrix } from "Maths/math";
+import { DeepImmutable } from "../types";
+import { Quaternion, Vector3, Vector2, Size, Color3, Matrix } from "../Maths/math";
 import { Animatable } from "./animatable";
 import { Animation, AnimationEvent } from "./animation";
 
-import { Scene } from "scene";
+import { Scene } from "../scene";
 
     // Static values to help the garbage collector
 

+ 4 - 4
src/Audio/analyser.ts

@@ -1,7 +1,7 @@
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { IAudioEngine } from "Audio/audioEngine";
-import { Engine } from "Engines/engine";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { IAudioEngine } from "../Audio/audioEngine";
+import { Engine } from "../Engines/engine";
 
     /**
      * Class used to work with sound analyzer using fast fourier transform (FFT)

+ 5 - 5
src/Audio/audioEngine.ts

@@ -1,10 +1,10 @@
-import { IDisposable } from "scene";
+import { IDisposable } from "../scene";
 import { Analyser } from "./analyser";
 
-import { Nullable } from "types";
-import { Observable } from "Misc/observable";
-import { Logger } from "Misc/logger";
-import { Engine } from "Engines/engine";
+import { Nullable } from "../types";
+import { Observable } from "../Misc/observable";
+import { Logger } from "../Misc/logger";
+import { Engine } from "../Engines/engine";
 
     /**
      * This represents an audio engine and it is responsible

+ 8 - 8
src/Audio/audioSceneComponent.ts

@@ -1,13 +1,13 @@
 import { Sound } from "./sound";
 import { SoundTrack } from "./soundTrack";
-import { Engine } from "Engines/engine";
-import { Camera } from "Cameras/camera";
-import { Nullable } from "types";
-import { Matrix, Vector3 } from "Maths/math";
-import { SceneComponentConstants, ISceneSerializableComponent } from "sceneComponent";
-import { Scene } from "scene";
-import { AbstractScene } from "abstractScene";
-import { AssetContainer } from "assetContainer";
+import { Engine } from "../Engines/engine";
+import { Camera } from "../Cameras/camera";
+import { Nullable } from "../types";
+import { Matrix, Vector3 } from "../Maths/math";
+import { SceneComponentConstants, ISceneSerializableComponent } from "../sceneComponent";
+import { Scene } from "../scene";
+import { AbstractScene } from "../abstractScene";
+import { AssetContainer } from "../assetContainer";
 
     // Adds the parser to the scene parsers.
     AbstractScene.AddParser(SceneComponentConstants.NAME_AUDIO, (parsedData: any, scene: Scene, container: AssetContainer, rootUrl: string) => {

+ 11 - 11
src/Audio/sound.ts

@@ -1,14 +1,14 @@
-import { Tools } from "Misc/tools";
-import { Observable } from "Misc/observable";
-import { Vector3, Tmp } from "Maths/math";
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { Engine } from "Engines/engine";
-import { AudioSceneComponent } from "Audio/audioSceneComponent";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { TransformNode } from "Meshes/transformNode";
-import { SceneComponentConstants } from "sceneComponent";
-import { Logger } from "Misc/logger";
+import { Tools } from "../Misc/tools";
+import { Observable } from "../Misc/observable";
+import { Vector3, Tmp } from "../Maths/math";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { Engine } from "../Engines/engine";
+import { AudioSceneComponent } from "../Audio/audioSceneComponent";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { TransformNode } from "../Meshes/transformNode";
+import { SceneComponentConstants } from "../sceneComponent";
+import { Logger } from "../Misc/logger";
 
     /**
      * Defines a sound that can be played in the application.

+ 3 - 3
src/Audio/soundTrack.ts

@@ -1,8 +1,8 @@
 import { Sound } from "./sound";
 import { Analyser } from "./analyser";
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { Engine } from "Engines/engine";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { Engine } from "../Engines/engine";
 
     /**
      * Options allowed during the creation of a sound track.

+ 2 - 2
src/Audio/weightedsound.ts

@@ -1,5 +1,5 @@
-import { Sound } from "Audio/sound";
-import { Logger } from "Misc/logger";
+import { Sound } from "../Audio/sound";
+import { Logger } from "../Misc/logger";
 
     /**
      * Wraps one or more Sound objects and selects one with random weight for playback.

+ 7 - 7
src/Behaviors/Cameras/autoRotationBehavior.ts

@@ -1,10 +1,10 @@
-import { Behavior } from "Behaviors/behavior";
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { Nullable } from "types";
-import { Tools } from "Misc/tools";
-import { Observer } from "Misc/observable";
-import { PointerInfoPre, PointerEventTypes } from "Events/pointerEvents";
+import { Behavior } from "../../Behaviors/behavior";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { Nullable } from "../../types";
+import { Tools } from "../../Misc/tools";
+import { Observer } from "../../Misc/observable";
+import { PointerInfoPre, PointerEventTypes } from "../../Events/pointerEvents";
 
     /**
      * The autoRotation behavior (AutoRotationBehavior) is designed to create a smooth rotation of an ArcRotateCamera when there is no user interaction.

+ 9 - 9
src/Behaviors/Cameras/bouncingBehavior.ts

@@ -1,12 +1,12 @@
-import { Behavior } from "Behaviors/behavior";
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { BackEase, EasingFunction } from "Animations/easing";
-import { Nullable } from "types";
-import { Observer } from "Misc/observable";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Animatable } from "Animations/animatable";
-import { Animation } from "Animations/animation";
+import { Behavior } from "../../Behaviors/behavior";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { BackEase, EasingFunction } from "../../Animations/easing";
+import { Nullable } from "../../types";
+import { Observer } from "../../Misc/observable";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Animatable } from "../../Animations/animatable";
+import { Animation } from "../../Animations/animation";
 
     /**
      * Add a bouncing effect to an ArcRotateCamera when reaching a specified minimum and maximum radius

+ 12 - 12
src/Behaviors/Cameras/framingBehavior.ts

@@ -1,15 +1,15 @@
-import { Behavior } from "Behaviors/behavior";
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ExponentialEase, EasingFunction } from "Animations/easing";
-import { Nullable } from "types";
-import { PointerInfoPre, PointerEventTypes } from "Events/pointerEvents";
-import { Tools } from "Misc/tools";
-import { Observer } from "Misc/observable";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Vector3, Vector2 } from "Maths/math";
-import { Animatable } from "Animations/animatable";
-import { Animation } from "Animations/animation";
+import { Behavior } from "../../Behaviors/behavior";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ExponentialEase, EasingFunction } from "../../Animations/easing";
+import { Nullable } from "../../types";
+import { PointerInfoPre, PointerEventTypes } from "../../Events/pointerEvents";
+import { Tools } from "../../Misc/tools";
+import { Observer } from "../../Misc/observable";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Vector3, Vector2 } from "../../Maths/math";
+import { Animatable } from "../../Animations/animatable";
+import { Animation } from "../../Animations/animation";
 
     /**
      * The framing behavior (FramingBehavior) is designed to automatically position an ArcRotateCamera when its target is set to a mesh. It is also useful if you want to prevent the camera to go under a virtual horizontal plane.

+ 7 - 7
src/Behaviors/Meshes/attachToBoxBehavior.ts

@@ -1,10 +1,10 @@
-import { Vector3, Matrix, Quaternion } from "Maths/math";
-import { Mesh } from "Meshes/mesh";
-import { TransformNode } from "Meshes/transformNode";
-import { Scene } from "scene";
-import { Nullable } from "types";
-import { Observer } from "Misc/observable";
-import { Behavior } from "Behaviors/behavior";
+import { Vector3, Matrix, Quaternion } from "../../Maths/math";
+import { Mesh } from "../../Meshes/mesh";
+import { TransformNode } from "../../Meshes/transformNode";
+import { Scene } from "../../scene";
+import { Nullable } from "../../types";
+import { Observer } from "../../Misc/observable";
+import { Behavior } from "../../Behaviors/behavior";
 
     /**
      * @hidden

+ 3 - 3
src/Behaviors/Meshes/fadeInOutBehavior.ts

@@ -1,7 +1,7 @@
 import { Behavior } from "../behavior";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Mesh } from "Meshes/mesh";
-import { Nullable } from "types";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Mesh } from "../../Meshes/mesh";
+import { Nullable } from "../../types";
 
     /**
      * A behavior that when attached to a mesh will allow the mesh to fade in and out

+ 5 - 5
src/Behaviors/Meshes/multiPointerScaleBehavior.ts

@@ -1,10 +1,10 @@
-import { Mesh } from "Meshes/mesh";
+import { Mesh } from "../../Meshes/mesh";
 import { Behavior } from "../behavior";
 import { PointerDragBehavior } from "./pointerDragBehavior";
-import { Vector3 } from "Maths/math";
-import { Nullable } from "types";
-import { Observer } from "Misc/observable";
-import { Scene } from "scene";
+import { Vector3 } from "../../Maths/math";
+import { Nullable } from "../../types";
+import { Observer } from "../../Misc/observable";
+import { Scene } from "../../scene";
 
     /**
      * A behavior that when attached to a mesh will allow the mesh to be scaled

+ 10 - 10
src/Behaviors/Meshes/pointerDragBehavior.ts

@@ -1,13 +1,13 @@
-import { Behavior } from "Behaviors/behavior";
-import { Mesh } from "Meshes/mesh";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Scene } from "scene";
-import { Nullable } from "types";
-import { Observer, Observable } from "Misc/observable";
-import { Vector3 } from "Maths/math";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
-import { BoundingBoxGizmo } from "Gizmos/boundingBoxGizmo";
-import { Ray } from "Culling/ray";
+import { Behavior } from "../../Behaviors/behavior";
+import { Mesh } from "../../Meshes/mesh";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Scene } from "../../scene";
+import { Nullable } from "../../types";
+import { Observer, Observable } from "../../Misc/observable";
+import { Vector3 } from "../../Maths/math";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
+import { BoundingBoxGizmo } from "../../Gizmos/boundingBoxGizmo";
+import { Ray } from "../../Culling/ray";
 
     /**
      * A behavior that when attached to a mesh will allow the mesh to be dragged around the screen based on pointer events

+ 10 - 10
src/Behaviors/Meshes/sixDofDragBehavior.ts

@@ -1,13 +1,13 @@
-import { Behavior } from "Behaviors/behavior";
-import { Mesh } from "Meshes/mesh";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Scene } from "scene";
-import { Nullable } from "types";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
-import { Vector3, Quaternion, Matrix } from "Maths/math";
-import { Observer, Observable } from "Misc/observable";
-import { BoundingBoxGizmo } from "Gizmos/boundingBoxGizmo";
-import { Camera } from "Cameras/camera";
+import { Behavior } from "../../Behaviors/behavior";
+import { Mesh } from "../../Meshes/mesh";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Scene } from "../../scene";
+import { Nullable } from "../../types";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
+import { Vector3, Quaternion, Matrix } from "../../Maths/math";
+import { Observer, Observable } from "../../Misc/observable";
+import { BoundingBoxGizmo } from "../../Gizmos/boundingBoxGizmo";
+import { Camera } from "../../Cameras/camera";
     /**
      * A behavior that when attached to a mesh will allow the mesh to be dragged around based on directions and origin of the pointer's ray
      */

+ 1 - 1
src/Behaviors/behavior.ts

@@ -1,4 +1,4 @@
-import { Nullable } from "types";
+import { Nullable } from "../types";
 
     /**
      * Interface used to define a behavior

+ 2 - 2
src/Behaviors/index.ts

@@ -1,3 +1,3 @@
 export * from "./behavior";
-export * from "./Cameras";
-export * from "./Meshes";
+export * from "./Cameras/index";
+export * from "./Meshes/index";

+ 8 - 8
src/Bones/bone.ts

@@ -1,13 +1,13 @@
 import { Skeleton } from "./skeleton";
 
-import { Vector3, Quaternion, Matrix, Space } from "Maths/math";
-import { ArrayTools } from "Misc/arrayTools";
-import { Nullable } from "types";
-import { Animation } from "Animations/animation";
-import { AnimationPropertiesOverride } from "Animations/animationPropertiesOverride";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { TransformNode } from "Meshes/transformNode";
-import { Node } from "node";
+import { Vector3, Quaternion, Matrix, Space } from "../Maths/math";
+import { ArrayTools } from "../Misc/arrayTools";
+import { Nullable } from "../types";
+import { Animation } from "../Animations/animation";
+import { AnimationPropertiesOverride } from "../Animations/animationPropertiesOverride";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { TransformNode } from "../Meshes/transformNode";
+import { Node } from "../node";
 
     /**
      * Class used to store bone information

+ 3 - 3
src/Bones/boneIKController.ts

@@ -1,8 +1,8 @@
 import { Bone } from "./bone";
 
-import { Vector3, Quaternion, Matrix, Space } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Nullable } from "types";
+import { Vector3, Quaternion, Matrix, Space } from "../Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Nullable } from "../types";
 
     /**
      * Class used to apply inverse kinematics to bones

+ 4 - 4
src/Bones/boneLookController.ts

@@ -1,7 +1,7 @@
-import { Nullable } from "types";
-import { ArrayTools } from "Misc/arrayTools";
-import { Vector3, Quaternion, Matrix, Space, Axis } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
+import { Nullable } from "../types";
+import { ArrayTools } from "../Misc/arrayTools";
+import { Vector3, Quaternion, Matrix, Space, Axis } from "../Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
 import { Bone } from "./bone";
 
     /**

+ 13 - 13
src/Bones/skeleton.ts

@@ -1,18 +1,18 @@
 import { Bone } from "./bone";
 
-import { IAnimatable, Tools } from "Misc/tools";
-import { Observable } from "Misc/observable";
-import { Vector3, Matrix, Tmp } from "Maths/math";
-import { Scene } from "scene";
-import { Nullable } from "types";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { RawTexture } from "Materials/Textures/rawTexture";
-import { Animatable } from "Animations/animatable";
-import { AnimationPropertiesOverride } from "Animations/animationPropertiesOverride";
-import { AnimationRange, Animation } from "Animations/animation";
-import { Engine } from "Engines/engine";
-import { Constants } from "Engines/constants";
-import { Logger } from "Misc/logger";
+import { IAnimatable, Tools } from "../Misc/tools";
+import { Observable } from "../Misc/observable";
+import { Vector3, Matrix, Tmp } from "../Maths/math";
+import { Scene } from "../scene";
+import { Nullable } from "../types";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { RawTexture } from "../Materials/Textures/rawTexture";
+import { Animatable } from "../Animations/animatable";
+import { AnimationPropertiesOverride } from "../Animations/animationPropertiesOverride";
+import { AnimationRange, Animation } from "../Animations/animation";
+import { Engine } from "../Engines/engine";
+import { Constants } from "../Engines/constants";
+import { Logger } from "../Misc/logger";
 
     /**
      * Class used to handle skinning animations

+ 6 - 6
src/Cameras/Inputs/arcRotateCameraGamepadInput.ts

@@ -1,9 +1,9 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { Gamepad } from "Gamepads/gamepad";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { Gamepad } from "../../Gamepads/gamepad";
     /**
      * Manage the gamepad inputs to control an arc rotate camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 8 - 8
src/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.ts

@@ -1,11 +1,11 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { Scene } from "scene";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { Engine } from "Engines/engine";
-import { KeyboardInfo, KeyboardEventTypes } from "Events/keyboardEvents";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { Scene } from "../../scene";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { Engine } from "../../Engines/engine";
+import { KeyboardInfo, KeyboardEventTypes } from "../../Events/keyboardEvents";
 
     /**
      * Manage the keyboard inputs to control the movement of an arc rotate camera.

+ 6 - 6
src/Cameras/Inputs/arcRotateCameraMouseWheelInput.ts

@@ -1,9 +1,9 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { EventState, Observer } from "Misc/observable";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { EventState, Observer } from "../../Misc/observable";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
 
     /**
      * Manage the mouse wheel inputs to control an arc rotate camera.

+ 7 - 7
src/Cameras/Inputs/arcRotateCameraPointersInput.ts

@@ -1,10 +1,10 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { EventState, Observer } from "Misc/observable";
-import { Tools } from "Misc/tools";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { EventState, Observer } from "../../Misc/observable";
+import { Tools } from "../../Misc/tools";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
 
     /**
      * Manage the pointers inputs to control an arc rotate camera.

+ 3 - 3
src/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.ts

@@ -1,6 +1,6 @@
-import { Nullable } from "types";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
+import { Nullable } from "../../types";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
 
     /**
      * Manage the device orientation inputs (gyroscope) to control an arc rotate camera.

+ 9 - 9
src/Cameras/Inputs/flyCameraKeyboardInput.ts

@@ -1,12 +1,12 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FlyCamera } from "Cameras/flyCamera";
-import { Engine } from "Engines/engine";
-import { KeyboardInfo, KeyboardEventTypes } from "Events/keyboardEvents";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FlyCamera } from "../../Cameras/flyCamera";
+import { Engine } from "../../Engines/engine";
+import { KeyboardInfo, KeyboardEventTypes } from "../../Events/keyboardEvents";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
 
     /**
      * Listen to keyboard events to control the camera.

+ 8 - 8
src/Cameras/Inputs/flyCameraMouseInput.ts

@@ -1,11 +1,11 @@
-import { Nullable } from "types";
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FlyCamera } from "Cameras/flyCamera";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
-import { Scene } from "scene";
-import { Quaternion, Axis } from "Maths/math";
+import { Nullable } from "../../types";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FlyCamera } from "../../Cameras/flyCamera";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
+import { Scene } from "../../scene";
+import { Quaternion, Axis } from "../../Maths/math";
     /**
      * Listen to mouse events to control the camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 5 - 5
src/Cameras/Inputs/freeCameraDeviceOrientationInput.ts

@@ -1,8 +1,8 @@
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { Quaternion } from "Maths/math";
-import { Tools } from "Misc/tools";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { Quaternion } from "../../Maths/math";
+import { Tools } from "../../Misc/tools";
     /**
      * Takes information about the orientation of the device as reported by the deviceorientation event to orient the camera.
      * Screen rotation is taken into account.

+ 7 - 7
src/Cameras/Inputs/freeCameraGamepadInput.ts

@@ -1,10 +1,10 @@
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { Matrix, Vector3, Vector2 } from "Maths/math";
-import { Gamepad } from "Gamepads/gamepad";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { Matrix, Vector3, Vector2 } from "../../Maths/math";
+import { Gamepad } from "../../Gamepads/gamepad";
 
     /**
      * Manage the gamepad inputs to control a free camera.

+ 9 - 9
src/Cameras/Inputs/freeCameraKeyboardMoveInput.ts

@@ -1,12 +1,12 @@
-import { serialize } from "Misc/decorators";
-import { Observer } from "Misc/observable";
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { KeyboardInfo, KeyboardEventTypes } from "Events/keyboardEvents";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Engine } from "Engines/engine";
+import { serialize } from "../../Misc/decorators";
+import { Observer } from "../../Misc/observable";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { KeyboardInfo, KeyboardEventTypes } from "../../Events/keyboardEvents";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Engine } from "../../Engines/engine";
     /**
      * Manage the keyboard inputs to control the movement of a free camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 6 - 6
src/Cameras/Inputs/freeCameraMouseInput.ts

@@ -1,9 +1,9 @@
-import { Observer, EventState } from "Misc/observable";
-import { serialize } from "Misc/decorators";
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
+import { Observer, EventState } from "../../Misc/observable";
+import { serialize } from "../../Misc/decorators";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
     /**
      * Manage the mouse inputs to control the movement of a free camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 7 - 7
src/Cameras/Inputs/freeCameraTouchInput.ts

@@ -1,10 +1,10 @@
-import { serialize } from "Misc/decorators";
-import { Observer, EventState } from "Misc/observable";
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { PointerInfo, PointerEventTypes } from "Events/pointerEvents";
-import { Matrix, Vector3 } from "Maths/math";
+import { serialize } from "../../Misc/decorators";
+import { Observer, EventState } from "../../Misc/observable";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { PointerInfo, PointerEventTypes } from "../../Events/pointerEvents";
+import { Matrix, Vector3 } from "../../Maths/math";
     /**
      * Manage the touch inputs to control the movement of a free camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 5 - 5
src/Cameras/Inputs/freeCameraVirtualJoystickInput.ts

@@ -1,8 +1,8 @@
-import { VirtualJoystick, JoystickAxis } from "Misc/virtualJoystick";
-import { Nullable } from "types";
-import { ICameraInput, CameraInputTypes } from "Cameras/cameraInputsManager";
-import { FreeCamera } from "Cameras/freeCamera";
-import { Matrix, Vector3 } from "Maths/math";
+import { VirtualJoystick, JoystickAxis } from "../../Misc/virtualJoystick";
+import { Nullable } from "../../types";
+import { ICameraInput, CameraInputTypes } from "../../Cameras/cameraInputsManager";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { Matrix, Vector3 } from "../../Maths/math";
     /**
      * Manage the Virtual Joystick inputs to control the movement of a free camera.
      * @see http://doc.babylonjs.com/how_to/customizing_camera_inputs

+ 5 - 5
src/Cameras/Stereoscopic/anaglyphArcRotateCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("AnaglyphArcRotateCamera", (name, scene, options) => {
         return () => new AnaglyphArcRotateCamera(name, 0, 0, 1.0, Vector3.Zero(), options.interaxial_distance, scene);

+ 5 - 5
src/Cameras/Stereoscopic/anaglyphFreeCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { FreeCamera } from "Cameras/freeCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("AnaglyphFreeCamera", (name, scene, options) => {
         return () => new AnaglyphFreeCamera(name, Vector3.Zero(), options.interaxial_distance, scene);

+ 5 - 5
src/Cameras/Stereoscopic/anaglyphGamepadCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { GamepadCamera } from "Cameras/gamepadCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { GamepadCamera } from "../../Cameras/gamepadCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("AnaglyphGamepadCamera", (name, scene, options) => {
         return () => new AnaglyphGamepadCamera(name, Vector3.Zero(), options.interaxial_distance, scene);

+ 5 - 5
src/Cameras/Stereoscopic/anaglyphUniversalCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { UniversalCamera } from "Cameras/universalCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { UniversalCamera } from "../../Cameras/universalCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("AnaglyphUniversalCamera", (name, scene, options) => {
         return () => new AnaglyphUniversalCamera(name, Vector3.Zero(), options.interaxial_distance, scene);

+ 5 - 5
src/Cameras/Stereoscopic/stereoscopicArcRotateCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("StereoscopicArcRotateCamera", (name, scene, options) => {
         return () => new StereoscopicArcRotateCamera(name, 0, 0, 1.0, Vector3.Zero(), options.interaxial_distance, options.isStereoscopicSideBySide, scene);

+ 5 - 5
src/Cameras/Stereoscopic/stereoscopicFreeCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { FreeCamera } from "Cameras/freeCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("StereoscopicFreeCamera", (name, scene, options) => {
         return () => new StereoscopicFreeCamera(name, Vector3.Zero(), options.interaxial_distance, options.isStereoscopicSideBySide, scene);

+ 5 - 5
src/Cameras/Stereoscopic/stereoscopicGamepadCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { GamepadCamera } from "Cameras/gamepadCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { GamepadCamera } from "../../Cameras/gamepadCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("StereoscopicGamepadCamera", (name, scene, options) => {
         return () => new StereoscopicGamepadCamera(name, Vector3.Zero(), options.interaxial_distance, options.isStereoscopicSideBySide, scene);

+ 5 - 5
src/Cameras/Stereoscopic/stereoscopicUniversalCamera.ts

@@ -1,8 +1,8 @@
-import { Camera } from "Cameras/camera";
-import { UniversalCamera } from "Cameras/universalCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Camera } from "../../Cameras/camera";
+import { UniversalCamera } from "../../Cameras/universalCamera";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("StereoscopicFreeCamera", (name, scene, options) => {
         return () => new StereoscopicUniversalCamera(name, Vector3.Zero(), options.interaxial_distance, options.isStereoscopicSideBySide, scene);

+ 1 - 1
src/Cameras/VR/vrCameraMetrics.ts

@@ -1,4 +1,4 @@
-import { Matrix } from "Maths/math";
+import { Matrix } from "../../Maths/math";
     /**
      * This represents all the required metrics to create a VR camera.
      * @see http://doc.babylonjs.com/babylon101/cameras#device-orientation-camera

+ 5 - 5
src/Cameras/VR/vrDeviceOrientationArcRotateCamera.ts

@@ -1,9 +1,9 @@
-import { Camera } from "Cameras/camera";
-import { ArcRotateCamera } from "Cameras/arcRotateCamera";
+import { Camera } from "../../Cameras/camera";
+import { ArcRotateCamera } from "../../Cameras/arcRotateCamera";
 import { VRCameraMetrics } from "./vrCameraMetrics";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("VRDeviceOrientationFreeCamera", (name, scene) => {
         return () => new VRDeviceOrientationArcRotateCamera(name, 0, 0, 1.0, Vector3.Zero(), scene);

+ 5 - 5
src/Cameras/VR/vrDeviceOrientationFreeCamera.ts

@@ -1,9 +1,9 @@
-import { Camera } from "Cameras/camera";
-import { DeviceOrientationCamera } from "Cameras/deviceOrientationCamera";
+import { Camera } from "../../Cameras/camera";
+import { DeviceOrientationCamera } from "../../Cameras/deviceOrientationCamera";
 import { VRCameraMetrics } from "./vrCameraMetrics";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("VRDeviceOrientationFreeCamera", (name, scene) => {
         return () => new VRDeviceOrientationFreeCamera(name, Vector3.Zero(), scene);

+ 3 - 3
src/Cameras/VR/vrDeviceOrientationGamepadCamera.ts

@@ -1,8 +1,8 @@
 import { VRDeviceOrientationFreeCamera } from "./vrDeviceOrientationFreeCamera";
 import { VRCameraMetrics } from "./vrCameraMetrics";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { Node } from "../../node";
 
     Node.AddNodeConstructor("VRDeviceOrientationGamepadCamera", (name, scene) => {
         return () => new VRDeviceOrientationGamepadCamera(name, Vector3.Zero(), scene);

+ 28 - 28
src/Cameras/VR/vrExperienceHelper.ts

@@ -1,31 +1,31 @@
-import { Logger } from "Misc/logger";
-import { Observer, Observable } from "Misc/observable";
-import { Nullable } from "types";
-import { Camera } from "Cameras/camera";
-import { FreeCamera } from "Cameras/freeCamera";
-import { TargetCamera } from "Cameras/targetCamera";
-import { DeviceOrientationCamera } from "Cameras/deviceOrientationCamera";
-import { VRDeviceOrientationFreeCamera } from "Cameras/VR/vrDeviceOrientationFreeCamera";
-import { WebVROptions, WebVRFreeCamera } from "Cameras/VR/webVRCamera";
-import { PointerEventTypes } from "Events/pointerEvents";
-import { Scene, IDisposable } from "scene";
-import { Quaternion, Matrix, Vector3, Color3, Color4, Axis } from "Maths/math";
-import { Gamepad, StickValues } from "Gamepads/gamepad";
-import { PoseEnabledController, PoseEnabledControllerType } from "Gamepads/Controllers/poseEnabledController";
-import { WebVRController } from "Gamepads/Controllers/webVRController";
-import { Xbox360Pad, Xbox360Button } from "Gamepads/xboxGamepad";
-import { IDisplayChangedEventArgs } from "Engines/engine";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { TransformNode } from "Meshes/transformNode";
-import { Mesh } from "Meshes/mesh";
-import { PickingInfo } from "Collisions/pickingInfo";
-import { Ray } from "Culling/ray";
-import { ImageProcessingConfiguration } from "Materials/imageProcessingConfiguration";
-import { StandardMaterial } from "Materials/standardMaterial";
-import { DynamicTexture } from "Materials/Textures/dynamicTexture";
-import { ImageProcessingPostProcess } from "PostProcesses/imageProcessingPostProcess";
-import { SineEase, EasingFunction, CircleEase } from "Animations/easing";
-import { Animation } from "Animations/animation";
+import { Logger } from "../../Misc/logger";
+import { Observer, Observable } from "../../Misc/observable";
+import { Nullable } from "../../types";
+import { Camera } from "../../Cameras/camera";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { TargetCamera } from "../../Cameras/targetCamera";
+import { DeviceOrientationCamera } from "../../Cameras/deviceOrientationCamera";
+import { VRDeviceOrientationFreeCamera } from "../../Cameras/VR/vrDeviceOrientationFreeCamera";
+import { WebVROptions, WebVRFreeCamera } from "../../Cameras/VR/webVRCamera";
+import { PointerEventTypes } from "../../Events/pointerEvents";
+import { Scene, IDisposable } from "../../scene";
+import { Quaternion, Matrix, Vector3, Color3, Color4, Axis } from "../../Maths/math";
+import { Gamepad, StickValues } from "../../Gamepads/gamepad";
+import { PoseEnabledController, PoseEnabledControllerType } from "../../Gamepads/Controllers/poseEnabledController";
+import { WebVRController } from "../../Gamepads/Controllers/webVRController";
+import { Xbox360Pad, Xbox360Button } from "../../Gamepads/xboxGamepad";
+import { IDisplayChangedEventArgs } from "../../Engines/engine";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { TransformNode } from "../../Meshes/transformNode";
+import { Mesh } from "../../Meshes/mesh";
+import { PickingInfo } from "../../Collisions/pickingInfo";
+import { Ray } from "../../Culling/ray";
+import { ImageProcessingConfiguration } from "../../Materials/imageProcessingConfiguration";
+import { StandardMaterial } from "../../Materials/standardMaterial";
+import { DynamicTexture } from "../../Materials/Textures/dynamicTexture";
+import { ImageProcessingPostProcess } from "../../PostProcesses/imageProcessingPostProcess";
+import { SineEase, EasingFunction, CircleEase } from "../../Animations/easing";
+import { Animation } from "../../Animations/animation";
 
     /**
      * Options to modify the vr teleportation behavior.

+ 15 - 15
src/Cameras/VR/webVRCamera.ts

@@ -1,18 +1,18 @@
-import { Nullable } from "types";
-import { Observer, Observable } from "Misc/observable";
-import { FreeCamera } from "Cameras/freeCamera";
-import { TargetCamera } from "Cameras/targetCamera";
-import { Camera } from "Cameras/camera";
-import { Scene } from "scene";
-import { Quaternion, Matrix, Vector3 } from "Maths/math";
-import { Gamepad } from "Gamepads/gamepad";
-import { PoseEnabledControllerType } from "Gamepads/Controllers/poseEnabledController";
-import { WebVRController } from "Gamepads/Controllers/webVRController";
-import { IDisplayChangedEventArgs } from "Engines/engine";
-import { Node } from "node";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Ray } from "Culling/ray";
-import { HemisphericLight } from "Lights/hemisphericLight";
+import { Nullable } from "../../types";
+import { Observer, Observable } from "../../Misc/observable";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { TargetCamera } from "../../Cameras/targetCamera";
+import { Camera } from "../../Cameras/camera";
+import { Scene } from "../../scene";
+import { Quaternion, Matrix, Vector3 } from "../../Maths/math";
+import { Gamepad } from "../../Gamepads/gamepad";
+import { PoseEnabledControllerType } from "../../Gamepads/Controllers/poseEnabledController";
+import { WebVRController } from "../../Gamepads/Controllers/webVRController";
+import { IDisplayChangedEventArgs } from "../../Engines/engine";
+import { Node } from "../../node";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Ray } from "../../Culling/ray";
+import { HemisphericLight } from "../../Lights/hemisphericLight";
     Node.AddNodeConstructor("WebVRFreeCamera", (name, scene) => {
         return () => new WebVRFreeCamera(name, Vector3.Zero(), scene);
     });

+ 5 - 5
src/Cameras/XR/webXRCamera.ts

@@ -1,8 +1,8 @@
-import { Vector3, Matrix, Quaternion, Viewport } from "Maths/math";
-import { Scene } from "scene";
-import { Camera } from "Cameras/camera";
-import { FreeCamera } from "Cameras/freeCamera";
-import { TargetCamera } from "Cameras/targetCamera";
+import { Vector3, Matrix, Quaternion, Viewport } from "../../Maths/math";
+import { Scene } from "../../scene";
+import { Camera } from "../../Cameras/camera";
+import { FreeCamera } from "../../Cameras/freeCamera";
+import { TargetCamera } from "../../Cameras/targetCamera";
 import { WebXRSessionManager } from "./webXRSessionManager";
 
     /**

+ 3 - 3
src/Cameras/XR/webXREnterExitUI.ts

@@ -1,6 +1,6 @@
-import { Nullable } from "types";
-import { Observable } from "Misc/observable";
-import { IDisposable, Scene } from "scene";
+import { Nullable } from "../../types";
+import { Observable } from "../../Misc/observable";
+import { IDisposable, Scene } from "../../scene";
 import { WebXRExperienceHelper, WebXRState } from "./webXRExperienceHelper";
     /**
      * Button which can be used to enter a different mode of XR

+ 7 - 7
src/Cameras/XR/webXRExperienceHelper.ts

@@ -1,10 +1,10 @@
-import { Nullable } from "types";
-import { Observable } from "Misc/observable";
-import { IDisposable, Scene } from "scene";
-import { Quaternion, Vector3 } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Ray } from "Culling/ray";
-import { Camera } from "Cameras/camera";
+import { Nullable } from "../../types";
+import { Observable } from "../../Misc/observable";
+import { IDisposable, Scene } from "../../scene";
+import { Quaternion, Vector3 } from "../../Maths/math";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Ray } from "../../Culling/ray";
+import { Camera } from "../../Cameras/camera";
 import { WebXRSessionManager } from "./webXRSessionManager";
 import { WebXRCamera } from "./webXRCamera";
     /**

+ 5 - 5
src/Cameras/XR/webXRInput.ts

@@ -1,8 +1,8 @@
-import { Nullable } from "types";
-import { Observer } from "Misc/observable";
-import { Matrix, Quaternion } from "Maths/math";
-import { IDisposable, Scene } from "scene";
-import { AbstractMesh } from "Meshes/abstractMesh";
+import { Nullable } from "../../types";
+import { Observer } from "../../Misc/observable";
+import { Matrix, Quaternion } from "../../Maths/math";
+import { IDisposable, Scene } from "../../scene";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
 import { WebXRExperienceHelper } from "./webXRExperienceHelper";
     /**
      * Represents an XR input

+ 2 - 2
src/Cameras/XR/webXRManagedOutputCanvas.ts

@@ -1,5 +1,5 @@
-import { Nullable } from "types";
-import { IDisposable } from "scene";
+import { Nullable } from "../../types";
+import { IDisposable } from "../../scene";
 import { WebXRExperienceHelper, WebXRState } from "./webXRExperienceHelper";
     /**
      * Creates a canvas that is added/removed from the webpage when entering/exiting XR

+ 8 - 8
src/Cameras/XR/webXRSessionManager.ts

@@ -1,11 +1,11 @@
-import { Logger } from "Misc/logger";
-import { Observable } from "Misc/observable";
-import { Nullable } from "types";
-import { IDisposable, Scene } from "scene";
-import { Vector3, Matrix } from "Maths/math";
-import { InternalTexture } from "Materials/Textures/internalTexture";
-import { RenderTargetTexture } from "Materials/Textures/renderTargetTexture";
-import { Ray } from "Culling/ray";
+import { Logger } from "../../Misc/logger";
+import { Observable } from "../../Misc/observable";
+import { Nullable } from "../../types";
+import { IDisposable, Scene } from "../../scene";
+import { Vector3, Matrix } from "../../Maths/math";
+import { InternalTexture } from "../../Materials/Textures/internalTexture";
+import { RenderTargetTexture } from "../../Materials/Textures/renderTargetTexture";
+import { Ray } from "../../Culling/ray";
     /**
      * Manages an XRSession
      * @see https://doc.babylonjs.com/how_to/webxr

+ 16 - 16
src/Cameras/arcRotateCamera.ts

@@ -1,21 +1,21 @@
-import { serialize, serializeAsVector3 } from "Misc/decorators";
-import { Observable } from "Misc/observable";
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { Matrix, Vector3, Vector2, Epsilon } from "Maths/math";
-import { Node } from "node";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Mesh } from "Meshes/mesh";
-import { AutoRotationBehavior } from "Behaviors/Cameras/autoRotationBehavior";
-import { BouncingBehavior } from "Behaviors/Cameras/bouncingBehavior";
-import { FramingBehavior } from "Behaviors/Cameras/framingBehavior";
-import { Collider } from "Collisions/collider";
+import { serialize, serializeAsVector3 } from "../Misc/decorators";
+import { Observable } from "../Misc/observable";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { Matrix, Vector3, Vector2, Epsilon } from "../Maths/math";
+import { Node } from "../node";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Mesh } from "../Meshes/mesh";
+import { AutoRotationBehavior } from "../Behaviors/Cameras/autoRotationBehavior";
+import { BouncingBehavior } from "../Behaviors/Cameras/bouncingBehavior";
+import { FramingBehavior } from "../Behaviors/Cameras/framingBehavior";
+import { Collider } from "../Collisions/collider";
 import { Camera } from "./camera";
 import { TargetCamera } from "./targetCamera";
-import { ArcRotateCameraPointersInput } from "Cameras/Inputs/arcRotateCameraPointersInput";
-import { ArcRotateCameraKeyboardMoveInput } from "Cameras/Inputs/arcRotateCameraKeyboardMoveInput";
-import { ArcRotateCameraMouseWheelInput } from "Cameras/Inputs/arcRotateCameraMouseWheelInput";
-import { ArcRotateCameraInputsManager } from "Cameras/arcRotateCameraInputsManager";
+import { ArcRotateCameraPointersInput } from "../Cameras/Inputs/arcRotateCameraPointersInput";
+import { ArcRotateCameraKeyboardMoveInput } from "../Cameras/Inputs/arcRotateCameraKeyboardMoveInput";
+import { ArcRotateCameraMouseWheelInput } from "../Cameras/Inputs/arcRotateCameraMouseWheelInput";
+import { ArcRotateCameraInputsManager } from "../Cameras/arcRotateCameraInputsManager";
 
     Node.AddNodeConstructor("ArcRotateCamera", (name, scene) => {
         return () => new ArcRotateCamera(name, 0, 0, 1.0, Vector3.Zero(), scene);

+ 5 - 5
src/Cameras/arcRotateCameraInputsManager.ts

@@ -1,9 +1,9 @@
 import { ArcRotateCamera } from "./arcRotateCamera";
-import { ArcRotateCameraVRDeviceOrientationInput } from "Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput";
-import { ArcRotateCameraPointersInput } from "Cameras/Inputs/arcRotateCameraPointersInput";
-import { ArcRotateCameraKeyboardMoveInput } from "Cameras/Inputs/arcRotateCameraKeyboardMoveInput";
-import { ArcRotateCameraMouseWheelInput } from "Cameras/Inputs/arcRotateCameraMouseWheelInput";
-import { CameraInputsManager } from "Cameras/cameraInputsManager";
+import { ArcRotateCameraVRDeviceOrientationInput } from "../Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput";
+import { ArcRotateCameraPointersInput } from "../Cameras/Inputs/arcRotateCameraPointersInput";
+import { ArcRotateCameraKeyboardMoveInput } from "../Cameras/Inputs/arcRotateCameraKeyboardMoveInput";
+import { ArcRotateCameraMouseWheelInput } from "../Cameras/Inputs/arcRotateCameraMouseWheelInput";
+import { CameraInputsManager } from "../Cameras/cameraInputsManager";
 
     /**
      * Default Inputs manager for the ArcRotateCamera.

+ 21 - 21
src/Cameras/camera.ts

@@ -1,25 +1,25 @@
-import { serialize, SerializationHelper, serializeAsVector3 } from "Misc/decorators";
-import { SmartArray } from "Misc/smartArray";
-import { Tools } from "Misc/tools";
-import { Observable } from "Misc/observable";
-import { Nullable } from "types";
+import { serialize, SerializationHelper, serializeAsVector3 } from "../Misc/decorators";
+import { SmartArray } from "../Misc/smartArray";
+import { Tools } from "../Misc/tools";
+import { Observable } from "../Misc/observable";
+import { Nullable } from "../types";
 import { CameraInputsManager } from "./cameraInputsManager";
-import { Scene } from "scene";
-import { Matrix, Vector3, Viewport, Plane, Frustum } from "Maths/math";
-import { Node } from "node";
-import { Mesh } from "Meshes/mesh";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Ray } from "Culling/ray";
-import { ICullable } from "Culling/boundingInfo";
-import { RenderTargetTexture } from "Materials/Textures/renderTargetTexture";
-import { PostProcess } from "PostProcesses/postProcess";
-import { PassPostProcess } from "PostProcesses/passPostProcess";
-import { AnaglyphPostProcess } from "PostProcesses/anaglyphPostProcess";
-import { StereoscopicInterlacePostProcess } from "PostProcesses/stereoscopicInterlacePostProcess";
-import { VRDistortionCorrectionPostProcess } from "PostProcesses/vrDistortionCorrectionPostProcess";
-import { Animation } from "Animations/animation";
-import { VRCameraMetrics } from "Cameras/VR/vrCameraMetrics";
-import { Logger } from "Misc/logger";
+import { Scene } from "../scene";
+import { Matrix, Vector3, Viewport, Plane, Frustum } from "../Maths/math";
+import { Node } from "../node";
+import { Mesh } from "../Meshes/mesh";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Ray } from "../Culling/ray";
+import { ICullable } from "../Culling/boundingInfo";
+import { RenderTargetTexture } from "../Materials/Textures/renderTargetTexture";
+import { PostProcess } from "../PostProcesses/postProcess";
+import { PassPostProcess } from "../PostProcesses/passPostProcess";
+import { AnaglyphPostProcess } from "../PostProcesses/anaglyphPostProcess";
+import { StereoscopicInterlacePostProcess } from "../PostProcesses/stereoscopicInterlacePostProcess";
+import { VRDistortionCorrectionPostProcess } from "../PostProcesses/vrDistortionCorrectionPostProcess";
+import { Animation } from "../Animations/animation";
+import { VRCameraMetrics } from "../Cameras/VR/vrCameraMetrics";
+import { Logger } from "../Misc/logger";
 
 declare type FreeCamera = import("./freeCamera").FreeCamera;
 declare type TargetCamera = import("./targetCamera").TargetCamera;

+ 3 - 3
src/Cameras/cameraInputsManager.ts

@@ -1,6 +1,6 @@
-import { Logger } from "Misc/logger";
-import { SerializationHelper } from "Misc/decorators";
-import { Nullable } from "types";
+import { Logger } from "../Misc/logger";
+import { SerializationHelper } from "../Misc/decorators";
+import { Nullable } from "../types";
 import { Camera } from "./camera";
     /**
      * @ignore

+ 3 - 3
src/Cameras/deviceOrientationCamera.ts

@@ -1,7 +1,7 @@
 import { FreeCamera } from "./freeCamera";
-import { Scene } from "scene";
-import { Quaternion, Vector3, Axis } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../scene";
+import { Quaternion, Vector3, Axis } from "../Maths/math";
+import { Node } from "../node";
 
     Node.AddNodeConstructor("DeviceOrientationCamera", (name, scene) => {
         return () => new DeviceOrientationCamera(name, Vector3.Zero(), scene);

+ 9 - 9
src/Cameras/flyCamera.ts

@@ -1,14 +1,14 @@
-import { serialize, serializeAsVector3 } from "Misc/decorators";
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { Vector3, Quaternion } from "Maths/math";
-import { Engine } from "Engines/engine";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Collider } from "Collisions/collider";
+import { serialize, serializeAsVector3 } from "../Misc/decorators";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { Vector3, Quaternion } from "../Maths/math";
+import { Engine } from "../Engines/engine";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Collider } from "../Collisions/collider";
 import { TargetCamera } from "./targetCamera";
 import { FlyCameraInputsManager } from "./flyCameraInputsManager";
-import { FlyCameraMouseInput } from "Cameras/Inputs/flyCameraMouseInput";
-import { FlyCameraKeyboardInput } from "Cameras/Inputs/flyCameraKeyboardInput";
+import { FlyCameraMouseInput } from "../Cameras/Inputs/flyCameraMouseInput";
+import { FlyCameraKeyboardInput } from "../Cameras/Inputs/flyCameraKeyboardInput";
     /**
      * This is a flying camera, designed for 3D movement and rotation in all directions,
      * such as in a 3D Space Shooter or a Flight Simulator.

+ 2 - 2
src/Cameras/flyCameraInputsManager.ts

@@ -1,7 +1,7 @@
 import { FlyCamera } from "./flyCamera";
 import { CameraInputsManager } from "./cameraInputsManager";
-import { FlyCameraMouseInput } from "Cameras/Inputs/flyCameraMouseInput";
-import { FlyCameraKeyboardInput } from "Cameras/Inputs/flyCameraKeyboardInput";
+import { FlyCameraMouseInput } from "../Cameras/Inputs/flyCameraMouseInput";
+import { FlyCameraKeyboardInput } from "../Cameras/Inputs/flyCameraKeyboardInput";
 
     /**
      * Default Inputs manager for the FlyCamera.

+ 7 - 7
src/Cameras/followCamera.ts

@@ -1,11 +1,11 @@
-import { Nullable } from "types";
-import { serialize, serializeAsMeshReference } from "Misc/decorators";
-import { Tools } from "Misc/tools";
+import { Nullable } from "../types";
+import { serialize, serializeAsMeshReference } from "../Misc/decorators";
+import { Tools } from "../Misc/tools";
 import { TargetCamera } from "./targetCamera";
-import { Scene } from "scene";
-import { Matrix, Vector3 } from "Maths/math";
-import { Node } from "node";
-import { AbstractMesh } from "Meshes/abstractMesh";
+import { Scene } from "../scene";
+import { Matrix, Vector3 } from "../Maths/math";
+import { Node } from "../node";
+import { AbstractMesh } from "../Meshes/abstractMesh";
     Node.AddNodeConstructor("FollowCamera", (name, scene) => {
         return () => new FollowCamera(name, Vector3.Zero(), scene);
     });

+ 9 - 9
src/Cameras/freeCamera.ts

@@ -1,14 +1,14 @@
-import { Nullable } from "types";
-import { serializeAsVector3, serialize } from "Misc/decorators";
-import { Vector3, Vector2 } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Collider } from "Collisions/collider";
-import { Scene } from "scene";
-import { Engine } from "Engines/engine";
+import { Nullable } from "../types";
+import { serializeAsVector3, serialize } from "../Misc/decorators";
+import { Vector3, Vector2 } from "../Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { Collider } from "../Collisions/collider";
+import { Scene } from "../scene";
+import { Engine } from "../Engines/engine";
 import { TargetCamera } from "./targetCamera";
 import { FreeCameraInputsManager } from "./freeCameraInputsManager";
-import { FreeCameraMouseInput } from "Cameras/Inputs/freeCameraMouseInput";
-import { FreeCameraKeyboardMoveInput } from "Cameras/Inputs/freeCameraKeyboardMoveInput";
+import { FreeCameraMouseInput } from "../Cameras/Inputs/freeCameraMouseInput";
+import { FreeCameraKeyboardMoveInput } from "../Cameras/Inputs/freeCameraKeyboardMoveInput";
 
     /**
      * This represents a free type of camera. It can be useful in First Person Shooter game for instance.

+ 5 - 5
src/Cameras/freeCameraInputsManager.ts

@@ -1,10 +1,10 @@
 import { FreeCamera } from "./freeCamera";
 import { CameraInputsManager } from "./cameraInputsManager";
-import { FreeCameraKeyboardMoveInput } from "Cameras/Inputs/freeCameraKeyboardMoveInput";
-import { FreeCameraMouseInput } from "Cameras/Inputs/freeCameraMouseInput";
-import { FreeCameraDeviceOrientationInput } from "Cameras/Inputs/freeCameraDeviceOrientationInput";
-import { FreeCameraTouchInput } from "Cameras/Inputs/freeCameraTouchInput";
-import { FreeCameraVirtualJoystickInput } from "Cameras/Inputs/freeCameraVirtualJoystickInput";
+import { FreeCameraKeyboardMoveInput } from "../Cameras/Inputs/freeCameraKeyboardMoveInput";
+import { FreeCameraMouseInput } from "../Cameras/Inputs/freeCameraMouseInput";
+import { FreeCameraDeviceOrientationInput } from "../Cameras/Inputs/freeCameraDeviceOrientationInput";
+import { FreeCameraTouchInput } from "../Cameras/Inputs/freeCameraTouchInput";
+import { FreeCameraVirtualJoystickInput } from "../Cameras/Inputs/freeCameraVirtualJoystickInput";
 
     /**
      * Default Inputs manager for the FreeCamera.

+ 3 - 3
src/Cameras/gamepadCamera.ts

@@ -1,7 +1,7 @@
 import { UniversalCamera } from "./universalCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../scene";
+import { Vector3 } from "../Maths/math";
+import { Node } from "../node";
     Node.AddNodeConstructor("GamepadCamera", (name, scene) => {
         return () => new GamepadCamera(name, Vector3.Zero(), scene);
     });

+ 4 - 4
src/Cameras/index.ts

@@ -1,4 +1,4 @@
-export * from "./Inputs";
+export * from "./Inputs/index";
 export * from "./cameraInputsManager";
 export * from "./camera";
 export * from "./targetCamera";
@@ -12,8 +12,8 @@ export * from "./flyCamera";
 export * from "./flyCameraInputsManager";
 export * from "./followCamera";
 export * from "./gamepadCamera";
-export * from "./Stereoscopic";
+export * from "./Stereoscopic/index";
 export * from "./universalCamera";
 export * from "./virtualJoysticksCamera";
-export * from "./VR";
-export * from "./XR";
+export * from "./VR/index";
+export * from "./XR/index";

+ 4 - 4
src/Cameras/targetCamera.ts

@@ -1,8 +1,8 @@
-import { serialize, serializeAsVector3, serializeAsMeshReference } from "Misc/decorators";
-import { Nullable } from "types";
+import { serialize, serializeAsVector3, serializeAsMeshReference } from "../Misc/decorators";
+import { Nullable } from "../types";
 import { Camera } from "./camera";
-import { Scene } from "scene";
-import { Quaternion, Matrix, Vector3, Vector2, Epsilon, Tmp, Axis } from "Maths/math";
+import { Scene } from "../scene";
+import { Quaternion, Matrix, Vector3, Vector2, Epsilon, Tmp, Axis } from "../Maths/math";
     /**
      * A target camera takes a mesh or position as a target and continues to look at it while it moves.
      * This is the base of the follow, arc rotate cameras and Free camera

+ 5 - 5
src/Cameras/touchCamera.ts

@@ -1,9 +1,9 @@
 import { FreeCamera } from "./freeCamera";
-import { FreeCameraTouchInput } from "Cameras/Inputs/freeCameraTouchInput";
-import { FreeCameraMouseInput } from "Cameras/Inputs/freeCameraMouseInput";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { FreeCameraTouchInput } from "../Cameras/Inputs/freeCameraTouchInput";
+import { FreeCameraMouseInput } from "../Cameras/Inputs/freeCameraMouseInput";
+import { Scene } from "../scene";
+import { Vector3 } from "../Maths/math";
+import { Node } from "../node";
 
     Node.AddNodeConstructor("TouchCamera", (name, scene) => {
         return () => new TouchCamera(name, Vector3.Zero(), scene);

+ 4 - 4
src/Cameras/universalCamera.ts

@@ -1,8 +1,8 @@
 import { TouchCamera } from "./touchCamera";
-import { Node } from "node";
-import { FreeCameraGamepadInput } from "Cameras/Inputs/freeCameraGamepadInput";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
+import { Node } from "../node";
+import { FreeCameraGamepadInput } from "../Cameras/Inputs/freeCameraGamepadInput";
+import { Scene } from "../scene";
+import { Vector3 } from "../Maths/math";
 import { Camera } from "./camera";
 
 Node.AddNodeConstructor("FreeCamera", (name, scene) => {

+ 3 - 3
src/Cameras/virtualJoysticksCamera.ts

@@ -1,7 +1,7 @@
 import { FreeCamera } from "./freeCamera";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Node } from "node";
+import { Scene } from "../scene";
+import { Vector3 } from "../Maths/math";
+import { Node } from "../node";
     Node.AddNodeConstructor("VirtualJoysticksCamera", (name, scene) => {
         return () => new VirtualJoysticksCamera(name, Vector3.Zero(), scene);
     });

+ 3 - 3
src/Collisions/collider.ts

@@ -1,6 +1,6 @@
-import { Nullable, IndicesArray } from "types";
-import { Vector3, Plane } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
+import { Nullable, IndicesArray } from "../types";
+import { Vector3, Plane } from "../Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
 
     var intersectBoxAASphere = (boxMin: Vector3, boxMax: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean => {
         if (boxMin.x > sphereCenter.x + sphereRadius) {

+ 6 - 6
src/Collisions/collisionCoordinator.ts

@@ -1,10 +1,10 @@
-import { Nullable } from "types";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { Engine } from "Engines/engine";
+import { Nullable } from "../types";
+import { Scene } from "../scene";
+import { Vector3 } from "../Maths/math";
+import { Engine } from "../Engines/engine";
 import { Collider } from "./collider";
-import { Geometry } from "Meshes/geometry";
-import { AbstractMesh } from "Meshes/abstractMesh";
+import { Geometry } from "../Meshes/geometry";
+import { AbstractMesh } from "../Meshes/abstractMesh";
 
     /** @hidden */
     export interface ICollisionCoordinator {

+ 6 - 6
src/Collisions/pickingInfo.ts

@@ -1,9 +1,9 @@
-import { Nullable, FloatArray } from "types";
-import { Vector3, Vector2, Tmp } from "Maths/math";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { VertexBuffer } from "Meshes/buffer";
-import { Ray } from "Culling/ray";
-import { Sprite } from "Sprites/sprite";
+import { Nullable, FloatArray } from "../types";
+import { Vector3, Vector2, Tmp } from "../Maths/math";
+import { AbstractMesh } from "../Meshes/abstractMesh";
+import { VertexBuffer } from "../Meshes/buffer";
+import { Ray } from "../Culling/ray";
+import { Sprite } from "../Sprites/sprite";
     /**
      * @hidden
      */

+ 5 - 5
src/Culling/Octrees/octree.ts

@@ -1,8 +1,8 @@
-import { SmartArray, SmartArrayNoDuplicate } from "Misc/smartArray";
-import { Vector3, Plane } from "Maths/math";
-import { SubMesh } from "Meshes/subMesh";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Ray } from "Culling/ray";
+import { SmartArray, SmartArrayNoDuplicate } from "../../Misc/smartArray";
+import { Vector3, Plane } from "../../Maths/math";
+import { SubMesh } from "../../Meshes/subMesh";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Ray } from "../../Culling/ray";
 import { OctreeBlock } from "./octreeBlock";
     /**
      * Contains an array of blocks representing the octree

+ 4 - 4
src/Culling/Octrees/octreeBlock.ts

@@ -1,7 +1,7 @@
-import { SmartArrayNoDuplicate } from "Misc/smartArray";
-import { Vector3, Plane } from "Maths/math";
-import { Ray } from "Culling/ray";
-import { BoundingBox } from "Culling/boundingBox";
+import { SmartArrayNoDuplicate } from "../../Misc/smartArray";
+import { Vector3, Plane } from "../../Maths/math";
+import { Ray } from "../../Culling/ray";
+import { BoundingBox } from "../../Culling/boundingBox";
 import { Octree } from "./octree";
     /**
      * Class used to store a cell in an octree

+ 8 - 8
src/Culling/Octrees/octreeSceneComponent.ts

@@ -1,11 +1,11 @@
-import { ISmartArrayLike } from "Misc/smartArray";
-import { Scene } from "scene";
-import { Vector3 } from "Maths/math";
-import { SubMesh } from "Meshes/subMesh";
-import { AbstractMesh } from "Meshes/abstractMesh";
-import { Collider } from "Collisions/collider";
-import { Ray } from "Culling/ray";
-import { SceneComponentConstants } from "sceneComponent";
+import { ISmartArrayLike } from "../../Misc/smartArray";
+import { Scene } from "../../scene";
+import { Vector3 } from "../../Maths/math";
+import { SubMesh } from "../../Meshes/subMesh";
+import { AbstractMesh } from "../../Meshes/abstractMesh";
+import { Collider } from "../../Collisions/collider";
+import { Ray } from "../../Culling/ray";
+import { SceneComponentConstants } from "../../sceneComponent";
 
 import { Octree } from "./octree";
 

+ 4 - 4
src/Culling/boundingBox.ts

@@ -1,7 +1,7 @@
-import { DeepImmutable } from "types";
-import { ArrayTools } from "Misc/arrayTools";
-import { Matrix, Vector3, Plane, Epsilon } from "Maths/math";
-import { BoundingSphere } from "Culling/boundingSphere";
+import { DeepImmutable } from "../types";
+import { ArrayTools } from "../Misc/arrayTools";
+import { Matrix, Vector3, Plane, Epsilon } from "../Maths/math";
+import { BoundingSphere } from "../Culling/boundingSphere";
 
 import { ICullable } from "./boundingInfo";
 

+ 0 - 0
src/Culling/boundingInfo.ts


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff