Removed all references to drag from the Examples and replaced with Friction.

This commit is contained in:
photonstorm
2014-01-22 21:06:16 +00:00
parent 20108e47f3
commit 31b68ac94f
8 changed files with 8 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ function create() {
player.anchor.setTo(0.5, 0.5);
player.body.collideWorldBounds = true;
player.body.bounce.setTo(0.9, 0.9);
player.body.drag.setTo(100, 100);
player.body.friction = 0.2;
player.body.gravity.setTo(0, 8);
// Enable input.
+1 -1
View File
@@ -37,7 +37,7 @@ function create() {
player.anchor.setTo(0.5, 0.5);
player.body.collideWorldBounds = true;
player.body.bounce.setTo(0.9, 0.9);
player.body.drag.setTo(50, 50);
player.body.friction = 0.2;
// Enable input.
player.inputEnabled = true;
-1
View File
@@ -42,7 +42,6 @@ function create() {
ball.anchor.setTo(0.5, 0.5);
ball.body.collideWorldBounds = true;
ball.body.bounce.setTo(0.9, 0.9);
ball.body.drag.setTo(10, 0);
// Enable input.
ball.inputEnabled = true;