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

Turn off mouse interaction in testbed #289

Open
rgov opened this issue Sep 29, 2024 · 0 comments
Open

Turn off mouse interaction in testbed #289

rgov opened this issue Sep 29, 2024 · 0 comments

Comments

@rgov
Copy link

rgov commented Sep 29, 2024

I'm not sure if it's possible to disable the mouse in the testbed. For example setting testbed.mouseForce = 0 triggers some other behavior rather than disabling it:

if (this.mouseForce) {
targetBody = body;
} else {
mouseJoint = new MouseJoint({maxForce: 1000}, mouseGround, body, { x: point.x, y: point.y });
world.createJoint(mouseJoint);
}

The closest I can get is testbed.mouseForce = 0.001 which is not truly disabled and difficult to discover.

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

1 participant