Character unable to jump when falling off an edge

This commit is contained in:
2018-10-04 10:19:40 +02:00
parent 6b098f6cde
commit 29df5f872d
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -43,6 +43,8 @@ impl Scene {
c.position.y = height;
c.speed.y = 0.0;
c.ground_collision();
} else {
c.fall_off();
}
}
}