Jump to content

problem wit World Bounds


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.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...

  • Recently Browsing   0 members

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