aboutsummaryrefslogtreecommitdiff
path: root/benchmarks2d/balls2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks2d/balls2.rs')
-rw-r--r--benchmarks2d/balls2.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmarks2d/balls2.rs b/benchmarks2d/balls2.rs
index 168acaf..a560d65 100644
--- a/benchmarks2d/balls2.rs
+++ b/benchmarks2d/balls2.rs
@@ -48,11 +48,9 @@ pub fn init_world(testbed: &mut Testbed) {
};
// Build the rigid body.
- let rigid_body = RigidBodyBuilder::new(status)
- .translation(vector![x, y])
- .build();
+ let rigid_body = RigidBodyBuilder::new(status).translation(vector![x, y]);
let handle = bodies.insert(rigid_body);
- let collider = ColliderBuilder::ball(rad).build();
+ let collider = ColliderBuilder::ball(rad);
colliders.insert_with_parent(collider, handle, &mut bodies);
}
}