diff --git a/hrt/prefab/Object3D.hx b/hrt/prefab/Object3D.hx index a45e177ec..ffed00d53 100644 --- a/hrt/prefab/Object3D.hx +++ b/hrt/prefab/Object3D.hx @@ -142,41 +142,6 @@ class Object3D extends Prefab { return getTransform(); } - /** - Returns the absolute position of this prefab using heaps object when instanciated - **/ - public function getAbsPos3d() { - if( local3d != null ) - return local3d.getAbsPos(); - var p = parent; - var m = getTransform(); - while( p != null ) { - var obj = p.to(Object3D); - if( obj == null ) { - if( p.parent == null ) { - p = p.shared.parentPrefab; - continue; - } - p = p.parent; - continue; - } - - var abs : h3d.Matrix; - if( obj.local3d != null ) { - abs = obj.local3d.getAbsPos(); - } else { - abs = obj.getAbsPos(true); - } - m.multiply3x4(m, abs); - return m; - } - if( shared.root3d != null ) { - m.multiply3x4(m, shared.root3d.getAbsPos()); - return m; - } - return m; - } - /** Returns the list of all h3d.scene.Object with the given class contained by this prefab and all of it's children diff --git a/hrt/prefab/Prefab.hx b/hrt/prefab/Prefab.hx index 92eaf6441..76b3cef0a 100644 --- a/hrt/prefab/Prefab.hx +++ b/hrt/prefab/Prefab.hx @@ -417,7 +417,7 @@ class Prefab { The result is stored in the given array `arr` if it's defined, otherwise an array is created. The final array is then returned. **/ - public function findAll(?cl: Class, ?filter : Prefab -> Bool, followRefs : Bool = false, ?arr : Array ) : Array { + public function findAll(?cl: Class, ?filter : Prefab -> Bool, followRefs : Bool = false, ?arr : Array ) : Array { if( arr == null ) arr = []; var asCl = cl != null ? Std.downcast(this, cl) : cast this; if (asCl != null) {