mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Removed all references to drag from the Examples and replaced with Friction.
This commit is contained in:
@@ -133,7 +133,7 @@ function create () {
|
||||
// tank.play('move');
|
||||
|
||||
// This will force it to decelerate and limit its speed
|
||||
tank.body.drag.setTo(200, 200);
|
||||
tank.body.friction = 0.2;
|
||||
tank.body.maxVelocity.setTo(400, 400);
|
||||
tank.body.collideWorldBounds = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user