Jump to content

Phaser 3 resize bounds by layer


Orlow
 Share

Recommended Posts

I m using Matter as physic engine
How can i do that (better in the way how devs thought i would do it)
Thanks!

 

//didnt work (screenshot) 
let bounds = ground.getBounds();
this.matter.world.setBounds(bounds['x'], bounds['y'], bounds['width'], bounds['height']);

//also didnt work
this.matter.world.setBounds()

 

Безымянный.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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