-
containsPoint
(x, y)Boolean
-
checks whether AABB contains a point.
Name |
Type |
Description |
x |
Number
|
the x position of the point to test. |
y |
Number
|
the y position of the point to test. |
Returns:
Type |
Description |
Boolean
|
true if it contains the point, false otherwise. |
-
-
calculates normal vector with other AABB. Assumes penetration.
Name |
Type |
Description |
other |
Colliders.AABB
|
other AABB to calculate normal with. |
Returns:
-
-
calculates penetration vector with other AABB. Assumes penetration itself.
Name |
Type |
Description |
other |
Colliders.AABB
|
other AABB to calculate penetration with. |
Returns:
-
isColliding
(other)Boolean
-
checks AABB collision with other AABB.
Name |
Type |
Description |
other |
Colliders.AABB
|
other AABB to check collision against. |
Returns:
Type |
Description |
Boolean
|
true if they collide, false otherwise. |
-
-
re-sets the AABB (updates min max axis points)
-
-
set the AABB position from a transform.
Name |
Type |
Description |
transform |
Core.Transform
|
the transform to get position from |