Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
139 stars 2 forks source link

The -Y direction of the cylinder collider doesn't collide with a flat face of the convex hull collider #1087

Open marsmaantje opened 10 months ago

marsmaantje commented 10 months ago

Describe the bug?

Under a certain orientation cylinder colliders do not interact with convex hull colliders, causing collision events to not happen when they should.

To Reproduce

World link (just paste it in and the world should open): resrec:///U-marsmaantje/R-cc902732-6014-4f34-8f4d-49978ad314dd

  1. Create a convex hull collider with a big flat face (eg. procedural box mesh, replace the box collider with convex hull)
  2. Create an active cylinder collider
  3. take contact events from the cylinder collider and push it in the flat face of the convex hull collider
  4. observe

The contact events should not fire when the -Y direction of the cylinder is facing the convex hull, but it should work if the +Y direction is facing the convex hull instead.

Expected behavior

Cylinder and Convex Hull colliders collide properly, no matter what angle they collide at

Screenshots

https://github.com/Yellow-Dog-Man/Resonite-Issues/assets/60362806/e07d35da-aa6b-4b9d-8a32-025c6919ca2f

https://github.com/Yellow-Dog-Man/Resonite-Issues/assets/60362806/7cca109e-b4ee-45de-a0c6-01af061c3a41

Resonite Version Number

2024.1.3.1265

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index

Log Files

LAPTOP-C_-2023.12.11.1259-_2024-01-06_22_01_07.log

Additional Context

This seems to happen with the flat face of the cone collider as well (replacing the convex hull)

Reporters

No response

Frooxius commented 10 months ago

This is likely big in BEPUv2 itself, we'll have to proxy the report to the library.