mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Removed all references to drag from the Examples and replaced with Friction.
This commit is contained in:
@@ -29,10 +29,7 @@ function create() {
|
||||
car.body.collideWorldBounds = true;
|
||||
car.body.bounce.setTo(0.8, 0.8);
|
||||
car.body.allowRotation = true;
|
||||
car.body.friction = 10;
|
||||
|
||||
// car.body.drag.x = 10;
|
||||
// car.body.drag.y = 10;
|
||||
car.body.friction = 0.4;
|
||||
|
||||
// car.body.acceleration.x = 10;
|
||||
game.input.onDown.add(start, this);
|
||||
|
||||
Reference in New Issue
Block a user