Updated p2.js to latest build.

This commit is contained in:
photonstorm
2013-12-11 03:20:33 +00:00
parent 215632c0a7
commit da5d8c9272
49 changed files with 2758 additions and 1282 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ Phaser.Physics.Arcade.prototype = {
* @param {number} velocity - Any component of velocity (e.g. 20).
* @param {number} acceleration - Rate at which the velocity is changing.
* @param {number} drag - Really kind of a deceleration, this is how much the velocity changes if Acceleration is not set.
* @param {number} mMax - An absolute value cap for the velocity.
* @param {number} [max=10000] - An absolute value cap for the velocity.
* @return {number} The altered Velocity value.
*/
computeVelocity: function (axis, body, velocity, acceleration, drag, max) {
+2 -3
View File
@@ -392,11 +392,10 @@ Phaser.Physics.Arcade.Body.prototype = {
this.checkWorldBounds();
}
this.hull.setTo(this.preX, this.preY, this.width, this.height);
// this.hull.setTo(this.preX, this.preY, this.width, this.height);
// this.hullX.setTo(this.x, this.preY, this.width, this.height);
// this.hullY.setTo(this.preX, this.y, this.width, this.height);
this.updateHulls(true);
// this.updateHulls(true);
}
if (this.skipQuadTree === false && this.allowCollision.none === false && this.sprite.visible && this.sprite.alive)