-
Notifications
You must be signed in to change notification settings - Fork 236
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
how to use mouseJoint without the testbed #178
Comments
here's the p5 example |
Have you checked out testbed code? It is in testbed folder. |
Yes I looked at testbed codeI have to create mousejoint in setupThen in mousepressed I get body and need to reset body a and b.As code shows, it didn't workTestbed doesn't work that wayOn Apr 21, 2021 2:34 AM, Ali Shakiba ***@***.***> wrote:
Have you checked out testbed code? It is in testbed folder.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm writing a p5 interface for planck and i don't use the testbed because i want p5 graphics.
however i can't create a mouse joint in mousePressed
so i created a mousejoint statically
now what can i do in mousePressed to set the target body and location?
any help appreciated
here's the example
https://editor.p5js.org/Bobcook47/sketches/OlzHvRszI
i only want to drag the figure that i click
I already did a P5 box2d interface with a much more extensive tutorial than any that I found for planck
https://github.com/bobcgausa/cook-js
I plan to rewrite the tutorial for planck once i finish but i need HELP with modifying a mouse joint dynamically
The text was updated successfully, but these errors were encountered: