Jump to content

matter.js and setting world bounds


Rose Game Solutions
 Share

Recommended Posts

in my scene's create method I'm using this line of code to set bounds.

 

this.matter.world.setBounds(0, 0, 1800, 1800, 15);

here, the thickness, is set to 15 as I understand it. But I fly through the walls sometimes and need a more solid barrier.

 

any ideas on how to shore up the world bounds? Alternatively if you know of a way of setting tiles along the world bounds, I'd be fine with that kind of solution...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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