| 1 |
function box_collision_all(arg0, arg1, arg2) |
| 2 |
{ |
| 3 |
if (((bbox_right - bbox_left) * (bbox_bottom - bbox_top)) == 0) |
| 4 |
return undefined; |
| 5 |
var _x = ((bbox_right + 1 + bbox_left) * 0.5) + (arg0 - x); |
| 6 |
var _y = ((bbox_bottom + 1 + bbox_top) * 0.5) + (arg1 - y); |
| 7 |
var _hw = ((bbox_right + 1) - bbox_left) * 0.5; |
| 8 |
var _hh = ((bbox_bottom + 1) - bbox_top) * 0.5; |
| 9 |
var _a = undefined; |
| 10 |
var _n = 0; |
| 11 |
with (arg2) |
| 12 |
{ |
| 13 |
if (id != other.id && ((bbox_right - bbox_left) * (bbox_bottom - bbox_top)) != 0 && (_hw + (((bbox_right + 1) - bbox_left) * 0.5)) > abs(((bbox_right + 1 + bbox_left) * 0.5) - _x) && (_hh + (((bbox_bottom + 1) - bbox_top) * 0.5)) > abs(((bbox_bottom + 1 + bbox_top) * 0.5) - _y)) |
| 14 |
{ |
| 15 |
_a[_n] = id; |
| 16 |
_n++; |
| 17 |
} |
| 18 |
} |
| 19 |
return _a; |
| 20 |
} |