mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Fixed some doc typos.
You can now pass a physicsConfig object with the game constructor that is given to p2.World, allowing you to set the broadphase, etc.
This commit is contained in:
@@ -40,7 +40,7 @@ function create() {
|
||||
// game.physics.setBoundsToWorld();
|
||||
|
||||
// game.physics.gravity.y = 9.78;
|
||||
game.physics.setBoundsToWorld(true, true, false, true);
|
||||
game.physics.setBoundsToWorld(true, true, false, true, false);
|
||||
|
||||
game.physics.world.gravity[1] = -20;
|
||||
game.physics.friction = 0.5;
|
||||
|
||||
Reference in New Issue
Block a user