You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convex hulls seem to be a lot less prone to resting, the jumpyness/jittering is sometimes out of control. It seems to get worse when the geometry is sharp or has long, pointy tips. Here's an example:
I think I managed to reproduce this in the rapier3d "convex_polyhedron" example.
in convex_polyhedron3.rs from current master (2e929bb):
diff --git a/examples3d/convex_polyhedron3.rs b/examples3d/convex_polyhedron3.rs
index 980720a..2b6f03b 100644
--- a/examples3d/convex_polyhedron3.rs+++ b/examples3d/convex_polyhedron3.rs@@ -26,7 +26,7 @@ pub fn init_world(testbed: &mut Testbed) {
/*
* Create the polyhedra
*/
- let num = 5;+ let num = 1;
let scale = 2.0;
let border_rad = 0.1;
@@ -46,7 +46,7 @@ pub fn init_world(testbed: &mut Testbed) {
let z = k as f32 * shift - centerz;
let mut points = Vec::new();
- for _ in 0..10 {+ for _ in 0..1000 {
let pt: Point<f32> = distribution.sample(&mut rng);
points.push(pt * scale);
}
Do the triangles get too dense in the convex collider?
Attached screen recording from this diff:
Convex hulls seem to be a lot less prone to resting, the jumpyness/jittering is sometimes out of control. It seems to get worse when the geometry is sharp or has long, pointy tips. Here's an example:
Screen.Recording.2023-02-12.at.12.24.11.mp4
This is using https://github.com/pmndrs/react-three-rapier which runs "@dimforge/rapier3d-compat": "0.11.1"
And a small repro: https://codesandbox.io/s/quiet-mountain-bi1cvj?file=/src/App.js
The text was updated successfully, but these errors were encountered: