Remove z < 0 hack

Former-commit-id: e0e4ad6e806189cd67ac626685ce9ed1456222f0
This commit is contained in:
Louis Pearson 2019-05-22 21:08:42 -06:00
parent c8c07d2783
commit afc5199b63

View File

@ -37,13 +37,6 @@ impl<'a> System<'a> for Sys {
// Movement
pos.0 += vel.0 * dt.0;
// Don't fall into the void.
// TODO: This shouldn't be needed when we have proper physics and chunk loading.
if pos.0.z < 0.0 {
pos.0.z = 0.0;
vel.0.z = 0.0;
}
// Basic collision with terrain
let mut i = 0.0;
while terrain