context: 		this.blockers.each(function(blocker){			var collision = false;						var block = {};			block.left = blocker.getStyle('left').toInt();			block.right = block.left + blocker.offsetWidth;			block.top = blocker.getStyle('top').toInt();			block.bottom = block.top + blocker.offsetHeight;						if (element.right > block.left && element.left < block.right && element.bottom > block.top && element.top < block.bottom){ //collision area				if (element.top < block.top && this.velocity.y > 0){ //touches top part of the blocker										this.position.y = block.top - element.height;					this.velocity.y *= -this.options.restitution;					if (!this.options.airFriction) this.velocity.x *= this.options.friction;										collision = true;										blocker.fireEvent('collisionTop', this.element);										onGround = true;									} else if (element.bottom > block.bottom && this.velocity.y < 0){ //touches bottom part of the blocker										this.position.y = block.bottom;					this.velocity.y *= -this.options.restitution;					collision = true;					blocker.fireEvent('collisionBottom', this.element);									} else if (element.left < block.left && this.velocity.x > 0){ //touches left part of the blocker					this.position.x = block.left - element.width;					this.velocity.x *= -this.options.restitution;					collision = true;					blocker.fireEvent('collisionLeft');									} else if (element.right > block.right && this.velocity.x < 0){ //touches right part of the blocker										this.position.x = block.right;					this.velocity.x *= -this.options.restitution;					collision = true;										blocker.fireEvent('collisionRight', this.element);				}			}			if (collision) blocker.fireEvent('collision', this.element);		}, this);
meta: 7826	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7826/43648750edbb2c0135f6a7fbe0054e0dc076cd57/Physics.js/clean/Misc/Physics.js