Browse Source

Object ignoreCollide

trethaller 7 years ago
parent
commit
2e8e98c891
1 changed files with 2 additions and 0 deletions
  1. 2 0
      h3d/scene/Object.hx

+ 2 - 0
h3d/scene/Object.hx

@@ -448,6 +448,8 @@ class Object implements hxd.impl.Serializable {
 		Same as getLocalCollider, but returns an absolute collider instead of a local one.
 	**/
 	public function getGlobalCollider() : h3d.col.Collider {
+		if(ignoreCollide)
+			return null;
 		var col = getLocalCollider();
 		return col == null ? null : new h3d.col.ObjectCollider(this, col);
 	}