Rename rigid-body static to fixed

This commit is contained in:
Sébastien Crozet
2022-03-19 16:23:09 +01:00
committed by Sébastien Crozet
parent db6a8c526d
commit a9e3441ecd
87 changed files with 284 additions and 271 deletions

View File

@@ -27,7 +27,7 @@ pub fn init_world(testbed: &mut Testbed) {
}
points.push(point![ground_size / 2.0, 40.0]);
let rigid_body = RigidBodyBuilder::new_static();
let rigid_body = RigidBodyBuilder::fixed();
let handle = bodies.insert(rigid_body);
let collider = ColliderBuilder::polyline(points, None);
colliders.insert_with_parent(collider, handle, &mut bodies);
@@ -48,7 +48,7 @@ pub fn init_world(testbed: &mut Testbed) {
let y = j as f32 * shift + centery + 3.0;
// Build the rigid body.
let rigid_body = RigidBodyBuilder::new_dynamic().translation(vector![x, y]);
let rigid_body = RigidBodyBuilder::dynamic().translation(vector![x, y]);
let handle = bodies.insert(rigid_body);
if j % 2 == 0 {