mirror of
https://github.com/wassname/phaser-plugin-isometric.git
synced 2026-09-09 11:28:50 +08:00
Fix compatibility with Phaser 2.3
This commit is contained in:
+3
-3
@@ -1,10 +1,10 @@
|
||||
/**
|
||||
* @class Phaser.Plugin.Isometric.Body
|
||||
*
|
||||
*
|
||||
* @classdesc
|
||||
* The Physics Body is linked to a single IsoSprite. All physics operations should be performed against the body rather than
|
||||
* the IsoSprite itself. For example you can set the velocity, acceleration, bounce values etc all on the Body.
|
||||
*
|
||||
*
|
||||
* @constructor
|
||||
* @param {Phaser.Plugin.Isometric.IsoSprite} sprite - The IsoSprite object this physics body belongs to.
|
||||
*/
|
||||
@@ -485,7 +485,7 @@ Phaser.Plugin.Isometric.Body.prototype = {
|
||||
|
||||
this.preRotation = this.rotation;
|
||||
|
||||
if (this._reset || this.sprite._cache[4] === 1) {
|
||||
if (this._reset || this.sprite.fresh === true) {
|
||||
this.prev.x = this.position.x;
|
||||
this.prev.y = this.position.y;
|
||||
this.prev.z = this.position.z;
|
||||
|
||||
Reference in New Issue
Block a user