Open Mutefish0 opened 1 month ago
Thank you for providing a test code. This looks like what is commonly known as the "internal edge problem" (or "shadow collisions") where the cube is hitting a vertex or the backface of the polyline segment. While we have something in place for addressing this in 3D, it hasn’t been implemented in 2D yet.
Thank you for the quick response and explanation.
I am setting up colliders for a tilemap in a 2D platformer game. Using polylines is more convenient, but I am encountering this issue. Is there any workaround or recommended approach to mitigate this issue in 2D for the time being? Any guidance would be greatly appreciated!
A cuboid collider attached to a dynamic rigidbody gets stuck after contacting a polyline collider attached to a fixed rigidbody.
As shown in the video: when moving left and right on the square polyline collider, it gets stuck at the corners, but moving on the cuboid collider works fine.
https://github.com/dimforge/rapier/assets/15227926/249ea285-1f4e-469b-b747-7f5ddc20d267
Reproduce
Modify the examples2d/character_controller2.rs file to the following code, then run it.