浏览代码

Move RayHelper to Debug folder

David Catuhe 8 年之前
父节点
当前提交
3de8f44d3d

+ 1 - 1
Tools/Gulp/config.json

@@ -35,7 +35,7 @@
             "../../src/Culling/babylon.boundingBox.js",
             "../../src/Culling/babylon.boundingInfo.js",
             "../../src/Culling/babylon.ray.js",
-            "../../src/Culling/babylon.rayHelper.js",
+            "../../src/Debug/babylon.rayHelper.js",
             "../../src/Mesh/babylon.abstractMesh.js",
             "../../src/Lights/babylon.light.js",
             "../../src/Lights/babylon.pointLight.js",

文件差异内容过多而无法显示
+ 4202 - 4201
dist/preview release/babylon.d.ts


+ 5 - 0
dist/preview release/babylon.max.js

@@ -11922,6 +11922,11 @@ var BABYLON;
         function RayHelper(ray) {
             this.ray = ray;
         }
+        RayHelper.CreateAndShow = function (ray, scene, color) {
+            var helper = new RayHelper(ray);
+            helper.show(scene, color);
+            return helper;
+        };
         RayHelper.prototype.show = function (scene, color) {
             if (!this._renderFunction) {
                 var ray = this.ray;

文件差异内容过多而无法显示
+ 4202 - 4201
dist/preview release/babylon.module.d.ts


文件差异内容过多而无法显示
+ 7 - 7
dist/preview release/babylon.noworker.js


+ 8 - 0
src/Culling/babylon.rayHelper.ts

@@ -13,6 +13,14 @@ module BABYLON {
         private _meshSpaceDirection: Vector3;
         private _meshSpaceOrigin: Vector3;
 
+        public static CreateAndShow(ray: Ray, scene: Scene, color:Color3): RayHelper {
+            var helper = new RayHelper(ray);
+
+            helper.show(scene, color);
+
+            return helper;
+        }
+
         constructor(ray:Ray) {
             this.ray = ray;
         }