Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body objects not following physics rule with resized canvas #118

Closed
vtheviking opened this issue Jul 9, 2015 · 4 comments
Closed

body objects not following physics rule with resized canvas #118

vtheviking opened this issue Jul 9, 2015 · 4 comments

Comments

@vtheviking
Copy link

Hello, thanks for creating Matter.js btw. I've been working on an issue that seems to be persistent and hard to identify. I currently resized the matter.js canvas element using the rendering options. So I went from 800 => 1350 and 600 => 665. The screen resizes, but what i am noticing is that my objects/sprites are freezing when getting past the original 800 width mark. So all of my physics such as gravity and friction are turning off or non responsive. Im not sure where i am going wrong here and if you could point me in the right direction i would be greatly happy.

@liabru
Copy link
Owner

liabru commented Jul 9, 2015

See #67 this should be solved if you use the latest master build.

@vtheviking
Copy link
Author

my codepen btw http://codepen.io/Vili_illy/pen/Xbqgrp

@vtheviking
Copy link
Author

okay, i will give it a look, I saw that they had a solution.
engine.world.bounds.max.x = 1600;
engine.world.bounds.max.y = 600;

is this solution still valid, or is it better to go with the master build.
thanks

@vtheviking
Copy link
Author

thanks for the help, 67 helped out a ton, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants