-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make this example compile and working ! #1
Comments
Hey, per my comment on Twitter:
I’ll dig a bit deeper and comment again if those options are not viable. |
Thanks ! I tried these approaches and didn't succeed (without modifying testbed source code) My notes on these options, correct me if I'm wrong:
Best option ? If I could pass a reference of
Now, specs is permissive about passing an Arc or whatever, so the "constraint" remains only on testbed side, and I might be oblivious of a solution which could dodge the problem. I'll check the source code of the testbed to see what are my options, the creator of nphysics answered with valuable informations so it might help |
The branch https://github.com/Vrixyz/testbed-callback/compare/1-reference aims to answer option 1. As Option 1 (without touching nphysics testbed source code) is the best option in my opinion, I'll focus my effort on understanding that. I'll create MR to discuss each options in details. |
This line causes trouble:
https://github.com/Vrixyz/testbed-callback/blob/master/src/main.rs#L77
I understand why : because physics_world is move here: https://github.com/Vrixyz/testbed-callback/blob/master/src/main.rs#L67.
But I have no idea how to fix it 😞
Thanks for your help!
13/08: Help asked at nphysics forum
The text was updated successfully, but these errors were encountered: