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

Rubber band ejection a ball #1070

Closed
herono2010 opened this issue Dec 18, 2021 · 3 comments
Closed

Rubber band ejection a ball #1070

herono2010 opened this issue Dec 18, 2021 · 3 comments
Labels

Comments

@herono2010
Copy link

There is a rubber band that is fixed at both ends, and the ball is placed on it and pulled it down with the mouse. Release the mouse and it will pop up. After reading all the example code, i don't know how to add this body to the world. Can someone help me,looking forward to your reply. At the same time, look forward to the official can provide such an example.

@liabru
Copy link
Owner

liabru commented Dec 20, 2021

Are you talking about the bridge example? You can check out the code here.

@herono2010
Copy link
Author

Are you talking about the bridge example? You can check out the code here.

First of all, thank you very much for your reply. I can cross the bridge by dragging the small square with the mouse. How about not crossing and setting the elasticity of the bridge.

@liabru
Copy link
Owner

liabru commented Feb 25, 2022

You can set the stiffness of the chain constraints like seen here then you'll probably want to increase iterations or substep to avoid passing through as shown here #5 (comment)

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

No branches or pull requests

2 participants