Removed Time delta cap, removed drag references from Emitter and tested doing a custom polygon collision.

This commit is contained in:
photonstorm
2014-01-24 03:53:11 +00:00
parent ea9e22f472
commit e3aaec8ac0
6 changed files with 338 additions and 653 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ Phaser.QuadTree.prototype = {
*/
populateHandler: function (sprite) {
if (sprite.body && sprite.body.allowCollision.none === false && sprite.alive)
if (sprite.body && sprite.body.checkCollision.none === false && sprite.alive)
{
this.insert(sprite.body);
}
+3 -3
View File
@@ -322,12 +322,12 @@ Phaser.Particles.Arcade.Emitter.prototype.makeParticles = function (keys, frames
if (collide > 0)
{
particle.body.allowCollision.any = true;
particle.body.allowCollision.none = false;
particle.body.checkCollision.any = true;
particle.body.checkCollision.none = false;
}
else
{
particle.body.allowCollision.none = true;
particle.body.checkCollision.none = true;
}
particle.body.collideWorldBounds = collideWorldBounds;
+202 -638
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -237,10 +237,10 @@ Phaser.Time.prototype = {
this.physicsElapsed = 1.0 * (this.elapsed / 1000);
// Clamp the delta
if (this.physicsElapsed > 1)
{
this.physicsElapsed = 1;
}
// if (this.physicsElapsed > 1)
// {
// this.physicsElapsed = 1;
// }
// Paused?
if (this.game.paused)