debug#renderShapeConvex fixed, fix in p2 physics body creation #446

This commit is contained in:
photonstorm
2014-02-19 15:43:05 +00:00
parent 1d3616f52c
commit aac31bdaa4
4 changed files with 112 additions and 97 deletions
+2 -2
View File
@@ -872,8 +872,8 @@ Phaser.Physics.Body.prototype = {
// Now process them into p2 values
for (var p = 0; p < path.length; p++)
{
path[p][0] = this.px2p(path[p][0]);
path[p][1] = this.px2p(path[p][1]);
path[p][0] = this.px2pi(path[p][0]);
path[p][1] = this.px2pi(path[p][1]);
}
// console.log('addPolygon PATH POST');