aboutsummaryrefslogtreecommitdiff
path: root/examples3d/compound3.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-01-22 18:10:54 +0100
committerCrozet Sébastien <developer@crozet.re>2021-01-22 18:10:54 +0100
commit57072f3ba7664933a031d6f5e332db7c183ec39c (patch)
treed27077498c3f66096150c594c51b5ad48e6e2666 /examples3d/compound3.rs
parentb779eb261e7c3e816c8b586f1f496dcd17dbf700 (diff)
downloadrapier-57072f3ba7664933a031d6f5e332db7c183ec39c.tar.gz
rapier-57072f3ba7664933a031d6f5e332db7c183ec39c.tar.bz2
rapier-57072f3ba7664933a031d6f5e332db7c183ec39c.zip
Move ColliderShape out of Rapier.
Diffstat (limited to 'examples3d/compound3.rs')
-rw-r--r--examples3d/compound3.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples3d/compound3.rs b/examples3d/compound3.rs
index b2fa485..4168fe9 100644
--- a/examples3d/compound3.rs
+++ b/examples3d/compound3.rs
@@ -1,6 +1,6 @@
use na::{Isometry3, Point3};
use rapier3d::dynamics::{JointSet, RigidBodyBuilder, RigidBodySet};
-use rapier3d::geometry::{ColliderBuilder, ColliderSet, ColliderShape};
+use rapier3d::geometry::{ColliderBuilder, ColliderSet, SharedShape};
use rapier_testbed3d::Testbed;
pub fn init_world(testbed: &mut Testbed) {
@@ -66,15 +66,15 @@ pub fn init_world(testbed: &mut Testbed) {
let shapes = vec![
(
Isometry3::identity(),
- ColliderShape::cuboid(rad * 10.0, rad, rad),
+ SharedShape::cuboid(rad * 10.0, rad, rad),
),
(
Isometry3::translation(rad * 10.0, rad * 10.0, 0.0),
- ColliderShape::cuboid(rad, rad * 10.0, rad),
+ SharedShape::cuboid(rad, rad * 10.0, rad),
),
(
Isometry3::translation(-rad * 10.0, rad * 10.0, 0.0),
- ColliderShape::cuboid(rad, rad * 10.0, rad),
+ SharedShape::cuboid(rad, rad * 10.0, rad),
),
];