Kaynağa Gözat

Revert "Merge branch 'master' of https://github.com/royibernthal/Babylon.js"

This reverts commit 36049a7201c5b5a6644c8b3375e2d856eeb291a5, reversing
changes made to 410880b502fb0471b5a524504d6cc9ba6ace091a.
Royi Bernthal 7 yıl önce
ebeveyn
işleme
6e410759d2
1 değiştirilmiş dosya ile 0 ekleme ve 16 silme
  1. 0 16
      gui/src/advancedDynamicTexture.ts

+ 0 - 16
gui/src/advancedDynamicTexture.ts

@@ -527,22 +527,6 @@ module BABYLON.GUI {
             this._attachToOnPointerOut(scene);
         }
 
-        public getMeshPosition(mesh: BABYLON.Mesh): BABYLON.Vector3 {
-            var scene = this.getScene();
-
-            if (!scene) {
-                return BABYLON.Vector3.Zero();
-            }
-
-            var globalViewport = this._getGlobalViewport(scene);
-            var position = mesh.getBoundingInfo().boundingSphere.center;
-            var projectedPosition = Vector3.Project(position, mesh.getWorldMatrix(), scene.getTransformMatrix(), globalViewport);
-
-            projectedPosition.scaleInPlace(this.renderScale);
-            
-            return projectedPosition;
-        }
-
         public moveFocusToControl(control: IFocusableControl): void {
             this.focusedControl = control;
             this._lastPickedControl = <any>control;