aboutsummaryrefslogtreecommitdiff
path: root/examples3d/debug_trimesh3.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2021-01-29 14:42:32 +0100
committerGitHub <noreply@github.com>2021-01-29 14:42:32 +0100
commit7ca46f38cde6cf8bf8bf41ea6067ae5bc938205c (patch)
tree3781b9d7c92a6a8111573ba4cae1c5d41435950e /examples3d/debug_trimesh3.rs
parente6fc8f67faf3e37afe38d683cbd930d457f289be (diff)
parent825f33efaec4ce6a8903751e836a0ea9c466ff92 (diff)
downloadrapier-7ca46f38cde6cf8bf8bf41ea6067ae5bc938205c.tar.gz
rapier-7ca46f38cde6cf8bf8bf41ea6067ae5bc938205c.tar.bz2
rapier-7ca46f38cde6cf8bf8bf41ea6067ae5bc938205c.zip
Merge pull request #79 from dimforge/split_geom
Move most of the geometric code to another crate.
Diffstat (limited to 'examples3d/debug_trimesh3.rs')
-rw-r--r--examples3d/debug_trimesh3.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples3d/debug_trimesh3.rs b/examples3d/debug_trimesh3.rs
index 0d0b276..186e673 100644
--- a/examples3d/debug_trimesh3.rs
+++ b/examples3d/debug_trimesh3.rs
@@ -24,18 +24,18 @@ pub fn init_world(testbed: &mut Testbed) {
Point3::new(-width, -width, width),
];
let idx = vec![
- Point3::new(0, 1, 2),
- Point3::new(0, 2, 3),
- Point3::new(4, 5, 6),
- Point3::new(4, 6, 7),
- Point3::new(0, 4, 7),
- Point3::new(0, 7, 3),
- Point3::new(1, 5, 6),
- Point3::new(1, 6, 2),
- Point3::new(3, 2, 7),
- Point3::new(2, 6, 7),
- Point3::new(0, 1, 5),
- Point3::new(0, 5, 4),
+ [0, 1, 2],
+ [0, 2, 3],
+ [4, 5, 6],
+ [4, 6, 7],
+ [0, 4, 7],
+ [0, 7, 3],
+ [1, 5, 6],
+ [1, 6, 2],
+ [3, 2, 7],
+ [2, 6, 7],
+ [0, 1, 5],
+ [0, 5, 4],
];
// Dynamic box rigid body.