aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-11-30 15:41:32 +0100
committerCrozet Sébastien <developer@crozet.re>2020-11-30 15:41:32 +0100
commit1e0f76b02c3766f2f1b5bd6b7362c0c993ffee67 (patch)
tree8bdad3f6e1a18b17b1d7898f64052927138bd4d4 /examples3d
parent715d0fe16eb8ca9df90ff161ade4bf809a780043 (diff)
downloadrapier-1e0f76b02c3766f2f1b5bd6b7362c0c993ffee67.tar.gz
rapier-1e0f76b02c3766f2f1b5bd6b7362c0c993ffee67.tar.bz2
rapier-1e0f76b02c3766f2f1b5bd6b7362c0c993ffee67.zip
Add a 2D demo for locking rotation.
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/locked_rotation3.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples3d/locked_rotation3.rs b/examples3d/locked_rotation3.rs
index b44b4d5..e8aee41 100644
--- a/examples3d/locked_rotation3.rs
+++ b/examples3d/locked_rotation3.rs
@@ -40,9 +40,7 @@ pub fn init_world(testbed: &mut Testbed) {
colliders.insert(collider, handle, &mut bodies);
/*
- * A capsule that cannot rotate.
- * We initialize it in a tilted position to demonstrate the
- * fact that is cannot rotate.
+ * A tilted capsule that cannot rotate.
*/
let rigid_body = RigidBodyBuilder::new_dynamic()
.translation(0.0, 5.0, 0.0)