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

Slingshot example with Keys and Constraint, instead of MouseConstraint and Mouse #1248

Open
hacktronics opened this issue Oct 16, 2023 · 0 comments

Comments

@hacktronics
Copy link

I want to adapt the slingshot example with keys instead of mouse, while using the constraint. I don't have a canvas, I use Matter JS to get the position and update the body position is my application (which is not matterJS canvas). So matterJS is just used for physics calculation and there is no mouse drag and drop support in my application.

image

When I add a new BodyB to the elastic constraint, the position of the ball does not changes? I want to adopt the slingshot example for education purpose. I can see another question, but I don't want to manually apply force, the goal is to adapt the constraint without using mouse.

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