southill
8/16/2018 - 5:34 PM

hittest hit test

hittest hit test

function hitTestObject(a,b){
				var area_0 = [a.x,a.y,66,66];
				var area_1 = [b.x,b.y,87,66];

				return !(area_0[0] + area_0[2] < area_1[0]
					|| area_0[0] > + area_1[0] + area_1[2]
					|| area_0[1] + area_0[3] < area_1[1] || area_0[1] > + area_1[1]
					+ area_1[3]);
			}