mirror of
https://github.com/wassname/phaser.git
synced 2026-07-14 01:10:16 +08:00
Removed all references to drag from the Examples and replaced with Friction.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user