Rose Game Solutions Posted December 12, 2018 Share Posted December 12, 2018 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... Quote Link to comment Share on other sites More sharing options...
Rose Game Solutions Posted December 12, 2018 Author Share Posted December 12, 2018 I increased the thickness and some of the body properties using setMass(<value>) setFriction(<value>, <air>) those combined with the bounds thickness seem to hold all high velocity objects inside it. Quote Link to comment Share on other sites More sharing options...
Rose Game Solutions Posted December 12, 2018 Author Share Posted December 12, 2018 I'm actually still managing to slip out of the corners... any suggestions on how to address that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.