diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-02-20 12:55:00 +0100 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2022-03-20 21:49:16 +0100 |
| commit | fb20d72ee29de9311a81aec6eb9f02fd2aa35fc4 (patch) | |
| tree | 45827ac4c754c3670d1ddb2f91fc498515d6b3b8 /examples2d/damping2.rs | |
| parent | e740493b980dc9856864ead3206a4fa02aff965f (diff) | |
| download | rapier-fb20d72ee29de9311a81aec6eb9f02fd2aa35fc4.tar.gz rapier-fb20d72ee29de9311a81aec6eb9f02fd2aa35fc4.tar.bz2 rapier-fb20d72ee29de9311a81aec6eb9f02fd2aa35fc4.zip | |
Joint API and joint motors improvements
Diffstat (limited to 'examples2d/damping2.rs')
| -rw-r--r-- | examples2d/damping2.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples2d/damping2.rs b/examples2d/damping2.rs index 481fee2..689190c 100644 --- a/examples2d/damping2.rs +++ b/examples2d/damping2.rs @@ -27,12 +27,11 @@ pub fn init_world(testbed: &mut Testbed) { .linvel(vector![x * 10.0, y * 10.0]) .angvel(100.0) .linear_damping((i + 1) as f32 * subdiv * 10.0) - .angular_damping((num - i) as f32 * subdiv * 10.0) - .build(); + .angular_damping((num - i) as f32 * subdiv * 10.0); let rb_handle = bodies.insert(rb); // Build the collider. - let co = ColliderBuilder::cuboid(rad, rad).build(); + let co = ColliderBuilder::cuboid(rad, rad); colliders.insert_with_parent(co, rb_handle, &mut bodies); } |
