aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-04-28 18:24:01 +0200
committerGitHub <noreply@github.com>2022-04-28 18:24:01 +0200
commit488aad0af3f772e14fd85b27bfff6c1db5d23829 (patch)
tree4c19f613750fcd8779714915dbb752ce369a4173 /examples3d
parent21a31bc1026d17d30b3a5ac35e6bb716dc66be6e (diff)
parent7dc038aec66783d72abda446d6251385e6ad30f4 (diff)
downloadrapier-488aad0af3f772e14fd85b27bfff6c1db5d23829.tar.gz
rapier-488aad0af3f772e14fd85b27bfff6c1db5d23829.tar.bz2
rapier-488aad0af3f772e14fd85b27bfff6c1db5d23829.zip
Merge pull request #315 from dimforge/debug-renderer
Add a basic lines-based debug-renderer
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/joints3.rs156
1 files changed, 78 insertions, 78 deletions
diff --git a/examples3d/joints3.rs b/examples3d/joints3.rs
index b5dc984..f7c6cb3 100644
--- a/examples3d/joints3.rs
+++ b/examples3d/joints3.rs
@@ -578,33 +578,33 @@ fn do_init_world(testbed: &mut Testbed, use_articulations: bool) {
let mut impulse_joints = ImpulseJointSet::new();
let mut multibody_joints = MultibodyJointSet::new();
- // create_prismatic_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![20.0, 5.0, 0.0],
- // 4,
- // use_articulations,
- // );
- // create_actuated_prismatic_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![25.0, 5.0, 0.0],
- // 4,
- // use_articulations,
- // );
- // create_revolute_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![20.0, 0.0, 0.0],
- // 3,
- // use_articulations,
- // );
+ create_prismatic_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![20.0, 5.0, 0.0],
+ 4,
+ use_articulations,
+ );
+ create_actuated_prismatic_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![25.0, 5.0, 0.0],
+ 4,
+ use_articulations,
+ );
+ create_revolute_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![20.0, 0.0, 0.0],
+ 3,
+ use_articulations,
+ );
create_revolute_joints_with_limits(
&mut bodies,
&mut colliders,
@@ -613,57 +613,57 @@ fn do_init_world(testbed: &mut Testbed, use_articulations: bool) {
point![34.0, 0.0, 0.0],
use_articulations,
);
- // create_fixed_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![0.0, 10.0, 0.0],
- // 10,
- // use_articulations,
- // );
- // create_actuated_revolute_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![20.0, 10.0, 0.0],
- // 6,
- // use_articulations,
- // );
- // create_actuated_spherical_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![13.0, 10.0, 0.0],
- // 3,
- // use_articulations,
- // );
- // create_spherical_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // 15,
- // use_articulations,
- // );
- // create_spherical_joints_with_limits(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![-5.0, 0.0, 0.0],
- // use_articulations,
- // );
- // create_coupled_joints(
- // &mut bodies,
- // &mut colliders,
- // &mut impulse_joints,
- // &mut multibody_joints,
- // point![0.0, 20.0, 0.0],
- // use_articulations,
- // );
+ create_fixed_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![0.0, 10.0, 0.0],
+ 10,
+ use_articulations,
+ );
+ create_actuated_revolute_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![20.0, 10.0, 0.0],
+ 6,
+ use_articulations,
+ );
+ create_actuated_spherical_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![13.0, 10.0, 0.0],
+ 3,
+ use_articulations,
+ );
+ create_spherical_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ 15,
+ use_articulations,
+ );
+ create_spherical_joints_with_limits(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![-5.0, 0.0, 0.0],
+ use_articulations,
+ );
+ create_coupled_joints(
+ &mut bodies,
+ &mut colliders,
+ &mut impulse_joints,
+ &mut multibody_joints,
+ point![0.0, 20.0, 0.0],
+ use_articulations,
+ );
/*
* Set up the testbed.