aboutsummaryrefslogtreecommitdiff
path: root/examples2d/damping2.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-03-19 16:23:09 +0100
committerSébastien Crozet <sebastien@crozet.re>2022-03-20 21:49:16 +0100
commita9e3441ecd64d50b478ab5370fabe187ec9a5c39 (patch)
tree92b2e4ee3d3599a446f15551cc74e8e71b9c6150 /examples2d/damping2.rs
parentdb6a8c526d939a125485c89cfb6e540422fe6b4b (diff)
downloadrapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.gz
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.bz2
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.zip
Rename rigid-body `static` to `fixed`
Diffstat (limited to 'examples2d/damping2.rs')
-rw-r--r--examples2d/damping2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples2d/damping2.rs b/examples2d/damping2.rs
index 689190c..0087323 100644
--- a/examples2d/damping2.rs
+++ b/examples2d/damping2.rs
@@ -22,7 +22,7 @@ pub fn init_world(testbed: &mut Testbed) {
let (x, y) = (i as f32 * subdiv * std::f32::consts::PI * 2.0).sin_cos();
// Build the rigid body.
- let rb = RigidBodyBuilder::new_dynamic()
+ let rb = RigidBodyBuilder::dynamic()
.translation(vector![x, y])
.linvel(vector![x * 10.0, y * 10.0])
.angvel(100.0)