Fix initial position

This commit is contained in:
Théophile Bastian 2018-02-14 14:16:13 +01:00
parent bfe3776914
commit 06c71feaa8

View file

@ -13,7 +13,7 @@ struct Movement {
right(false),
turn_l(false),
turn_r(false),
sight_angle(0.)
sight_angle(3.14159)
{}
bool
@ -79,8 +79,9 @@ void periodic_update() {
_movement.tick();
_position += _movement.movement();
Point look_at = _position + _movement.sight();
_render->set_camera(_position, _position + _movement.sight());
_render->set_camera(_position, look_at);
_last_time = now;
glutPostRedisplay();