aboutsummaryrefslogtreecommitdiff
path: root/examples3d/debug_dynamic_collider_add3.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2020-12-01 15:14:43 +0100
committerGitHub <noreply@github.com>2020-12-01 15:14:43 +0100
commitcacee0d2a07f5089e7b6bb43f319714b16ecc303 (patch)
tree5dbf8b9865fef8009f63446f15c84fc708f351c6 /examples3d/debug_dynamic_collider_add3.rs
parent29d4814266a2c8cd82beea8e63226157aca675fc (diff)
parenta072d4056a51c2965c598efcb35459f01796ea18 (diff)
downloadrapier-cacee0d2a07f5089e7b6bb43f319714b16ecc303.tar.gz
rapier-cacee0d2a07f5089e7b6bb43f319714b16ecc303.tar.bz2
rapier-cacee0d2a07f5089e7b6bb43f319714b16ecc303.zip
Merge pull request #71 from dimforge/principal_inertia_rename
Rename RigidBodyBuilder::principal_inertia -> principal_angular_inertia for clarity.
Diffstat (limited to 'examples3d/debug_dynamic_collider_add3.rs')
-rw-r--r--examples3d/debug_dynamic_collider_add3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples3d/debug_dynamic_collider_add3.rs b/examples3d/debug_dynamic_collider_add3.rs
index 4ea6836..a71e95e 100644
--- a/examples3d/debug_dynamic_collider_add3.rs
+++ b/examples3d/debug_dynamic_collider_add3.rs
@@ -24,7 +24,7 @@ pub fn init_world(testbed: &mut Testbed) {
.friction(0.15)
// .restitution(0.5)
.build();
- let mut ground_collider_handle = colliders.insert(collider, ground_handle, &mut bodies);
+ colliders.insert(collider, ground_handle, &mut bodies);
/*
* Rolling ball
@@ -60,7 +60,7 @@ pub fn init_world(testbed: &mut Testbed) {
extra_colliders.push(new_ball_collider_handle);
// Snap the ball velocity or restore it.
- let mut ball = physics.bodies.get_mut(ball_handle).unwrap();
+ let ball = physics.bodies.get_mut(ball_handle).unwrap();
if step == snapped_frame {
linvel = *ball.linvel();