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

Custom additions to Model and Custom Controls? #330

Open
Sina-Haz opened this issue Oct 21, 2024 · 2 comments
Open

Custom additions to Model and Custom Controls? #330

Sina-Haz opened this issue Oct 21, 2024 · 2 comments
Assignees
Labels
question The issue author requires information

Comments

@Sina-Haz
Copy link

Hi, I was wondering if there is some kind of interface so that I can define a struct or some class and have it be an object in Warp's model class? I want to implement cables attached to rigid bodies and have as a custom control the changing of the rest lengths.

@Sina-Haz Sina-Haz added the question The issue author requires information label Oct 21, 2024
@eric-heiden
Copy link
Contributor

Hi @Sina-Haz, we don't have such an interface yet where custom elements can be added to the model or control object. But you could simply assign your own structures to the Model or Control objects that you need for cable simulation and perform some custom handling before/after Integrator.simulate() yourself.

@Sina-Haz
Copy link
Author

I see. Could you give me an example of this being done. Doesn't necessarily have to be my use case but any example code would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue author requires information
Projects
None yet
Development

No branches or pull requests

2 participants