Add a 2D demo for locking rotation.

This commit is contained in:
Crozet Sébastien
2020-11-30 15:41:32 +01:00
parent 715d0fe16e
commit 1e0f76b02c
7 changed files with 73 additions and 11 deletions

View File

@@ -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)