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

Initial application of external force will make multi collider setup go haywire #296

Open
claudijo opened this issue Jan 12, 2024 · 0 comments
Labels
bug Something isn't working solver Relates to constraints, joints or the solver

Comments

@claudijo
Copy link
Sponsor

When porting some buoyancy mechanics from Rapier to XPBD I encountered an issue with a multi collider/rigid body setup with fixed joints (conceptually a raft with pontoons in each corner).

When applying external force (buoyancy) to the pontoons for the first time, the raft will go into an exaggerated spin.

This exaggerated spin only happens when the pontoons are exposed to an external force for the first time and the raft don't have any angular velocity. Subsequent application of a buoyancy force as the raft re-enters the water, will behave as expected and not cause any exaggerated spin.

I've made a small example project that reproduces the issue. See https://github.com/claudijo/raft/blob/main/src/main.rs

Here is a short clip to demonstrate the issue

simple_buoyancy.mov
@Jondolf Jondolf added bug Something isn't working solver Relates to constraints, joints or the solver labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solver Relates to constraints, joints or the solver
Projects
None yet
Development

No branches or pull requests

2 participants