slight amplification of thrust control.

This commit is contained in:
Antonio Carzaniga 2021-12-03 00:32:16 +01:00
parent b2e760a749
commit 896470f7bf

View File

@ -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;