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

setStatic method bug #430

Closed
hyunsooda opened this issue Jun 16, 2017 · 1 comment
Closed

setStatic method bug #430

hyunsooda opened this issue Jun 16, 2017 · 1 comment

Comments

@hyunsooda
Copy link

hyunsooda commented Jun 16, 2017

Hello, I’m Korean universty student that using well your library.
I have been used your library but, I found that there is a bug so, I am writting article for you.
Bug is below.
for example,

const a = Bodies.rectangle(10,10,10,10);
Events.on(engine,’mouseConstraint’, (e) => {
if(e.mouse.position.x > 300 && e.mouse.position.x < 500)
Body.setStatic(a,true);
else
Body.setStatic(a,false);
});

In that case, incur error that body of a is erase without intention.

I’ll wait your response.

@liabru
Copy link
Owner

liabru commented Mar 26, 2023

Closing this one, as it should be covered by #641.

@liabru liabru closed this as completed Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants