Browse Source

Allow usage of 2D Bounds as a collider (#1007)

Pavel Alexandrov 3 years ago
parent
commit
896cdffa90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      h2d/col/Bounds.hx

+ 2 - 2
h2d/col/Bounds.hx

@@ -7,7 +7,7 @@ import hxd.Math;
 	@see `Object.getBounds`
 	@see `Object.getSize`
 **/
-class Bounds {
+class Bounds implements Collider {
 
 	/** X-axis left-most bounding box point. **/
 	public var xMin : Float;
@@ -394,4 +394,4 @@ class Bounds {
 		return b;
 	}
 
-}
+}