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

Simulating series connected bodies #5

Open
windseacn opened this issue Jul 6, 2021 · 1 comment
Open

Simulating series connected bodies #5

windseacn opened this issue Jul 6, 2021 · 1 comment

Comments

@windseacn
Copy link

Thanks for sharing this code. I want to know whether moodyAPI could be used to simulated the dynamics of multiple connected bodies? For example, the body A is connected to a fixed position with a cable, and body B is connected to body A with another cable.

@johannep
Copy link
Owner

johannep commented Aug 9, 2021

Sorry for late reply. Vacation-timing was not the best :)
Using the dynamicRigidBody library you should be able to configure this yes. You need to specify a bodies keyword in the restraint-dict. bodies should then be a list of bodies at which the attachmentPoints are connected. So:
bodies (bodyA, bodyB);
attachmentPoints (pointInA, pointInB ); // check manual and "transform" property if local or global system should be used.

Disclaimer: this has not been tested in a very long time, or indeed ever. The functionality was included for future use when we developed the API. Please let me know how you progress at: [email protected]

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

2 participants