Add a 2D demo for locking rotation.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user