diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-03-19 16:23:09 +0100 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2022-03-20 21:49:16 +0100 |
| commit | a9e3441ecd64d50b478ab5370fabe187ec9a5c39 (patch) | |
| tree | 92b2e4ee3d3599a446f15551cc74e8e71b9c6150 /benchmarks2d/joint_prismatic2.rs | |
| parent | db6a8c526d939a125485c89cfb6e540422fe6b4b (diff) | |
| download | rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.gz rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.bz2 rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.zip | |
Rename rigid-body `static` to `fixed`
Diffstat (limited to 'benchmarks2d/joint_prismatic2.rs')
| -rw-r--r-- | benchmarks2d/joint_prismatic2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks2d/joint_prismatic2.rs b/benchmarks2d/joint_prismatic2.rs index 65e7fe1..d4d328b 100644 --- a/benchmarks2d/joint_prismatic2.rs +++ b/benchmarks2d/joint_prismatic2.rs @@ -24,7 +24,7 @@ pub fn init_world(testbed: &mut Testbed) { for j in 0..50 { let x = j as f32 * shift * 4.0; - let ground = RigidBodyBuilder::new_static().translation(vector![x, y]); + let ground = RigidBodyBuilder::fixed().translation(vector![x, y]); let mut curr_parent = bodies.insert(ground); let collider = ColliderBuilder::cuboid(rad, rad); colliders.insert_with_parent(collider, curr_parent, &mut bodies); @@ -32,7 +32,7 @@ pub fn init_world(testbed: &mut Testbed) { for i in 0..num { let y = y - (i + 1) as f32 * shift; let density = 1.0; - let rigid_body = RigidBodyBuilder::new_dynamic().translation(vector![x, y]); + let rigid_body = RigidBodyBuilder::dynamic().translation(vector![x, y]); let curr_child = bodies.insert(rigid_body); let collider = ColliderBuilder::cuboid(rad, rad).density(density); colliders.insert_with_parent(collider, curr_child, &mut bodies); |
