瀏覽代碼

cleanup parent transforms

Nicolas Cannasse 2 年之前
父節點
當前提交
8506f87548
共有 3 個文件被更改,包括 2 次插入7 次删除
  1. 1 3
      h3d/col/ObjectCollider.hx
  2. 1 3
      h3d/col/SkinCollider.hx
  3. 0 1
      h3d/col/TransformCollider.hx

+ 1 - 3
h3d/col/ObjectCollider.hx

@@ -67,10 +67,8 @@ class ObjectCollider extends Collider {
 	#if !macro
 	#if !macro
 	public function makeDebugObj() : h3d.scene.Object {
 	public function makeDebugObj() : h3d.scene.Object {
 		var ret = collider.makeDebugObj();
 		var ret = collider.makeDebugObj();
-		if( ret != null ) {
-			ret.ignoreParentTransform = true;
+		if( ret != null )
 			ret.follow = obj;
 			ret.follow = obj;
-		}
 		return ret;
 		return ret;
 	}
 	}
 	#end
 	#end

+ 1 - 3
h3d/col/SkinCollider.hx

@@ -93,9 +93,7 @@ class SkinCollider extends Collider {
 
 
 	#if !macro
 	#if !macro
 	public function makeDebugObj() : h3d.scene.Object {
 	public function makeDebugObj() : h3d.scene.Object {
-		var ret = new SkinColliderDebugObj(this);
-		ret.ignoreParentTransform = true;
-		return ret;
+		return new SkinColliderDebugObj(this);
 	}
 	}
 	#end
 	#end
 
 

+ 0 - 1
h3d/col/TransformCollider.hx

@@ -81,7 +81,6 @@ class TransformCollider extends Collider {
 	#if !macro
 	#if !macro
 	public function makeDebugObj() : h3d.scene.Object {
 	public function makeDebugObj() : h3d.scene.Object {
 		var obj = collider.makeDebugObj();
 		var obj = collider.makeDebugObj();
-		obj.ignoreParentTransform = true;
 		obj.defaultTransform = mat;
 		obj.defaultTransform = mat;
 		return obj;
 		return obj;
 	}
 	}