From 896470f7bf6709b55aa06724e8c67f439bee5e30 Mon Sep 17 00:00:00 2001 From: Antonio Carzaniga Date: Fri, 3 Dec 2021 00:32:16 +0100 Subject: [PATCH] slight amplification of thrust control. --- balls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/balls.c b/balls.c index c6975ad..073655e 100644 --- a/balls.c +++ b/balls.c @@ -144,8 +144,8 @@ void ball_update_state (struct ball * p) { void spaceship_update_state () { if (spaceship_thrust > 0) { - double fx = cos(spaceship.angle)*spaceship_thrust; - double fy = sin(spaceship.angle)*spaceship_thrust; + double fx = cos(spaceship.angle)*spaceship_thrust*4.0; + double fy = sin(spaceship.angle)*spaceship_thrust*4.0; spaceship.x += delta*delta*fx/2.0; spaceship.v_x += delta*fx;