aboutsummaryrefslogtreecommitdiff
path: root/benchmarks2d
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-04-28 18:23:30 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-04-30 23:10:46 +0200
commit0a9153e273dc0bdd4ba6443bd7f4dcfc671faac3 (patch)
tree08433a2e846051726d577cbf67e3fb932e446bc5 /benchmarks2d
parent929aa6b9259b95d48cf6a84df40486132b21f088 (diff)
downloadrapier-0a9153e273dc0bdd4ba6443bd7f4dcfc671faac3.tar.gz
rapier-0a9153e273dc0bdd4ba6443bd7f4dcfc671faac3.tar.bz2
rapier-0a9153e273dc0bdd4ba6443bd7f4dcfc671faac3.zip
chore: clippy fixes
Diffstat (limited to 'benchmarks2d')
-rw-r--r--benchmarks2d/vertical_stacks2.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/benchmarks2d/vertical_stacks2.rs b/benchmarks2d/vertical_stacks2.rs
index aaf7933..15552ba 100644
--- a/benchmarks2d/vertical_stacks2.rs
+++ b/benchmarks2d/vertical_stacks2.rs
@@ -10,15 +10,14 @@ pub fn init_world(testbed: &mut Testbed) {
let impulse_joints = ImpulseJointSet::new();
let multibody_joints = MultibodyJointSet::new();
-
- let rad = 0.5; // 50.0 / 2.0; // 0.5;
- let rad = 50.0 / 2.0; // 0.5;
+ let num = 80;
+ let rad = 0.5;
/*
* Ground
*/
let ground_size = num as f32 * rad * 10.0;
- let ground_thickness = 25.0;
+ let ground_thickness = 1.0;
let rigid_body = RigidBodyBuilder::fixed();
let ground_handle = bodies.insert(rigid_body);
@@ -31,7 +30,7 @@ pub fn init_world(testbed: &mut Testbed) {
let shiftx_centerx = [
(rad * 2.0 + 0.0002, -(num as f32) * rad * 2.0 * 1.5),
- (rad * 2.0 + rad, num as f32 * rad * 2.0 * 1.5),
+ (rad * 2.0 + rad, num as f32 * rad * 2.0 * 1.5),
];
for (shiftx, centerx) in shiftx_centerx {