aboutsummaryrefslogtreecommitdiff
path: root/benchmarks2d/balls2.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-04-26 17:59:25 +0200
committerCrozet Sébastien <developer@crozet.re>2021-04-26 18:00:50 +0200
commitc32da78f2a6014c491aa3e975fb83ddb7c80610e (patch)
treeedd20f23270baee1577c486f78d825eb93ea0de0 /benchmarks2d/balls2.rs
parentaaf80bfa872c6f29b248cab8eb5658ab0d73cb4a (diff)
downloadrapier-c32da78f2a6014c491aa3e975fb83ddb7c80610e.tar.gz
rapier-c32da78f2a6014c491aa3e975fb83ddb7c80610e.tar.bz2
rapier-c32da78f2a6014c491aa3e975fb83ddb7c80610e.zip
Split rigid-bodies and colliders into multiple components
Diffstat (limited to 'benchmarks2d/balls2.rs')
-rw-r--r--benchmarks2d/balls2.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks2d/balls2.rs b/benchmarks2d/balls2.rs
index 6791505..9a28195 100644
--- a/benchmarks2d/balls2.rs
+++ b/benchmarks2d/balls2.rs
@@ -1,5 +1,5 @@
use na::Point2;
-use rapier2d::dynamics::{BodyStatus, JointSet, RigidBodyBuilder, RigidBodySet};
+use rapier2d::dynamics::{JointSet, RigidBodyBuilder, RigidBodySet, RigidBodyType};
use rapier2d::geometry::{ColliderBuilder, ColliderSet};
use rapier_testbed2d::Testbed;
@@ -42,9 +42,9 @@ pub fn init_world(testbed: &mut Testbed) {
let y = j as f32 * shifty + centery;
let status = if j == 0 {
- BodyStatus::Static
+ RigidBodyType::Static
} else {
- BodyStatus::Dynamic
+ RigidBodyType::Dynamic
};
// Build the rigid body.