aboutsummaryrefslogtreecommitdiff
path: root/examples3d/debug_cylinder3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d/debug_cylinder3.rs')
-rw-r--r--examples3d/debug_cylinder3.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/examples3d/debug_cylinder3.rs b/examples3d/debug_cylinder3.rs
index cb087be..b62fb12 100644
--- a/examples3d/debug_cylinder3.rs
+++ b/examples3d/debug_cylinder3.rs
@@ -19,11 +19,9 @@ pub fn init_world(testbed: &mut Testbed) {
let ground_size = 100.1;
let ground_height = 0.1;
- let rigid_body = RigidBodyBuilder::new_static()
- .translation(vector![0.0, -ground_height, 0.0])
- .build();
+ let rigid_body = RigidBodyBuilder::new_static().translation(vector![0.0, -ground_height, 0.0]);
let handle = bodies.insert(rigid_body);
- let collider = ColliderBuilder::cuboid(ground_size, ground_height, ground_size).build();
+ let collider = ColliderBuilder::cuboid(ground_size, ground_height, ground_size);
colliders.insert_with_parent(collider, handle, &mut bodies);
/*
@@ -46,11 +44,9 @@ pub fn init_world(testbed: &mut Testbed) {
let z = -centerz + offset;
// Build the rigid body.
- let rigid_body = RigidBodyBuilder::new_dynamic()
- .translation(vector![x, y, z])
- .build();
+ let rigid_body = RigidBodyBuilder::new_dynamic().translation(vector![x, y, z]);
let handle = bodies.insert(rigid_body);
- let collider = ColliderBuilder::cylinder(rad, rad).build();
+ let collider = ColliderBuilder::cylinder(rad, rad);
colliders.insert_with_parent(collider, handle, &mut bodies);
/*