Jelajahi Sumber

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

Pavel Alexandrov 3 tahun lalu
induk
melakukan
896cdffa90
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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.getBounds`
 	@see `Object.getSize`
 	@see `Object.getSize`
 **/
 **/
-class Bounds {
+class Bounds implements Collider {
 
 
 	/** X-axis left-most bounding box point. **/
 	/** X-axis left-most bounding box point. **/
 	public var xMin : Float;
 	public var xMin : Float;
@@ -394,4 +394,4 @@ class Bounds {
 		return b;
 		return b;
 	}
 	}
 
 
-}
+}