mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove z < 0 hack
Former-commit-id: e0e4ad6e806189cd67ac626685ce9ed1456222f0
This commit is contained in:
parent
c8c07d2783
commit
afc5199b63
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user