aboutsummaryrefslogtreecommitdiff
path: root/examples2d/debug_box_ball2.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/debug_box_ball2.rs
parentdb6a8c526d939a125485c89cfb6e540422fe6b4b (diff)
downloadrapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.gz
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.bz2
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.zip
Rename rigid-body `static` to `fixed`
Diffstat (limited to 'examples2d/debug_box_ball2.rs')
-rw-r--r--examples2d/debug_box_ball2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples2d/debug_box_ball2.rs b/examples2d/debug_box_ball2.rs
index e071c61..9725ccf 100644
--- a/examples2d/debug_box_ball2.rs
+++ b/examples2d/debug_box_ball2.rs
@@ -14,7 +14,7 @@ pub fn init_world(testbed: &mut Testbed) {
* Ground
*/
let rad = 1.0;
- let rigid_body = RigidBodyBuilder::new_static()
+ let rigid_body = RigidBodyBuilder::fixed()
.translation(vector![0.0, -rad])
.rotation(std::f32::consts::PI / 4.0);
let handle = bodies.insert(rigid_body);
@@ -22,7 +22,7 @@ pub fn init_world(testbed: &mut Testbed) {
colliders.insert_with_parent(collider, handle, &mut bodies);
// Build the dynamic box rigid body.
- let rigid_body = RigidBodyBuilder::new_dynamic()
+ let rigid_body = RigidBodyBuilder::dynamic()
.translation(vector![0.0, 3.0 * rad])
.can_sleep(false);
let handle = bodies.insert(rigid_body);