Add wall to test #426

This commit is contained in:
Jan Nils Ferner
2023-01-24 03:13:24 +01:00
parent 1a4183cc94
commit e712219522

View File

@@ -88,6 +88,19 @@ pub fn init_world(testbed: &mut Testbed) {
.rotation(impossible_slope_angle); .rotation(impossible_slope_angle);
colliders.insert(collider); colliders.insert(collider);
/*
* Create a wall we cant climb.
*/
let wall_angle = PI / 2.;
let wall_size = 2.0;
let collider = ColliderBuilder::cuboid(wall_size, ground_height)
.translation(vector![
ground_size + slope_size * 2.0 + impossible_slope_size + 0.35,
-ground_height + 2.5 * 2.3
])
.rotation(wall_angle);
colliders.insert(collider);
/* /*
* Create a moving platform. * Create a moving platform.
*/ */