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

Weird box behavior #112

Open
tzaeschke opened this issue May 16, 2023 · 0 comments
Open

Weird box behavior #112

tzaeschke opened this issue May 16, 2023 · 0 comments
Assignees
Milestone

Comments

@tzaeschke
Copy link
Owner

tzaeschke commented May 16, 2023

Boxes sometimes fall very slow or not at all:

  • DemoTrimesh: If the fourth dropped body is a Box, it will land on an edge and then fall very slowly
  • DemoHeightfield: If the first item is a box, it will land on it's edge and just stay there until it is knocked over by another item.

In summary, box collision is recognized just fine, but the resulting forces on the box appear to be much too weak.

The DemoTrimesh problem is reproducible in ODE (16.3), the DemoHeightfield problem is not reproducible in ODE.

Preliminary findings

The DemoHeightfield problem goes away when using the ODE/C++ order for randomized position (x,y,z). Using the Java order in C++ does not reproduce the problem.

Even with identical starting positions, ODE and ode4j show slightly different initial contact positions. Also, ode4j reports around 803/806 collisions before the second contact appears while ODE shows only 527/529.
When counting only contact, for ode4j the 22nd contact is the first double-contact, while for ODE it is the 18th.

@tzaeschke tzaeschke self-assigned this May 16, 2023
@tzaeschke tzaeschke added this to the v0.5.1 milestone May 16, 2023
tzaeschke added a commit that referenced this issue May 16, 2023
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

1 participant