mirror of
https://github.com/wassname/phaser.git
synced 2026-08-10 12:30:48 +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);
|
||||
|
||||
@@ -46,7 +46,6 @@ function launch() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
function hit(face, body1, body2) {
|
||||
|
||||
console.log('hit', face);
|
||||
|
||||
Reference in New Issue
Block a user