|
@@ -408,6 +408,9 @@ class Object implements hxd.impl.Serializable {
|
|
|
if( ignoreCollide )
|
|
|
return null;
|
|
|
var colliders = [];
|
|
|
+ var col = getColliderInner();
|
|
|
+ if( col != null )
|
|
|
+ colliders.push(col);
|
|
|
for( obj in children ) {
|
|
|
var c = obj.getCollider();
|
|
|
if( c == null ) continue;
|
|
@@ -425,6 +428,10 @@ class Object implements hxd.impl.Serializable {
|
|
|
return new h3d.col.Collider.GroupCollider(colliders);
|
|
|
}
|
|
|
|
|
|
+ function getColliderInner() : h3d.col.Collider {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
Same as parent.removeChild(this), but does nothing if parent is null.
|
|
|
In order to capture add/removal from scene, you can override onAdd/onRemove/onParentChanged
|