Jump to content

problem wit World Bounds


enriqueto
 Share

Recommended Posts

I'm using p2 physics and I don't want to have the bottom side of the world walls that come as default. I do the following:

 

      this.game.physics.startSystem(Phaser.Physics.P2JS);
      this.game.physics.p2.gravity.y = 1300;
      var worldMaterial = this.game.physics.p2.createMaterial('worldMaterial');
      this.game.physics.p2.setWorldMaterial(worldMaterial, true, true, true, false);
      this.game.physics.p2.setBoundsToWorld( true, true, true , false);

 

However that results on none of the walls being there.

 

 

 
      

 

Link to comment
Share on other sites

  • 11 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...