Cleaned console.log

This commit is contained in:
2015-11-28 17:58:00 +08:00
parent adf1a9cdb3
commit f13e3fcc20
3 changed files with 5 additions and 9 deletions
+4 -6
View File
@@ -4253,7 +4253,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
* @param {number} [xSpeedMax=500] - The maximum x velocity the display object can reach.
* @param {number} [ySpeedMax=500] - The maximum y velocity the display object can reach.
* @param {number} [zSpeedMax=500] - The maximum z velocity the display object can reach.
* @return {number} The angle (in radians) that the object should be visually set to in order to match its new trajectory.
* @return {number} The angle (in radians).
*/
accelerateToXYZ: function(displayObject, x, y, z, speed, xSpeedMax, ySpeedMax, zSpeedMax) {
@@ -4287,7 +4287,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
* @param {number} z - The z coordinate to move towards.
* @param {number} [speed=60] - The speed it will move, in pixels per second (default is 60 pixels/sec)
* @param {number} [maxTime=0] - Time given in milliseconds (1000 = 1 sec). If set the speed is adjusted so the object will arrive at destination in the given number of ms.
* @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.
* @return {number} The angle (in radians).
*/
moveToXYZ: function(displayObject, x, y, z, speed, maxTime) {
@@ -4305,9 +4305,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
var a = this.anglesToXYZ(displayObject.body, x, y,z);
var v = this.velocityFromAngles(a.theta,a.phi,speed);
console.log(displayObject.id,v);
displayObject.body.velocity.copyFrom(v);
console.log(displayObject.id,displayObject.body.velocity);
return a.theta;
@@ -4326,7 +4324,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
* @param {any} destination - The display object to move towards. Can be any object but must have visible x/y/z properties.
* @param {number} [speed=60] - The speed it will move, in pixels per second (default is 60 pixels/sec)
* @param {number} [maxTime=0] - Time given in milliseconds (1000 = 1 sec). If set the speed is adjusted so the object will arrive at destination in the given number of ms.
* @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.
* @return {number} The angle (in radians).
*/
moveToObject: function (displayObject, destination, speed, maxTime) {
@@ -4346,7 +4344,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
* @param {number} [speed=60] - The speed it will move, in pixels per second (default is 60 pixels/sec)
* @param {Phaser.Pointer} [pointer] - The pointer to move towards. Defaults to Phaser.Input.activePointer.
* @param {number} [maxTime=0] - Time given in milliseconds (1000 = 1 sec). If set the speed is adjusted so the object will arrive at destination in the given number of ms.
* @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.
* @return {number} The angle (in radians).
*/
moveToPointer: function(displayObject, speed, pointer, maxTime) {
File diff suppressed because one or more lines are too long
-2
View File
@@ -1178,9 +1178,7 @@ Phaser.Plugin.Isometric.Arcade.prototype = {
var a = this.anglesToXYZ(displayObject.body, x, y,z);
var v = this.velocityFromAngles(a.theta,a.phi,speed);
console.log(displayObject.id,v);
displayObject.body.velocity.copyFrom(v);
console.log(displayObject.id,displayObject.body.velocity);
return a.theta;