From ea00365953dac518b388817261430d0efd451aa3 Mon Sep 17 00:00:00 2001 From: taw27 Date: Thu, 17 Jul 2008 18:51:30 +0000 Subject: Make yaw movements a bit less sluggish git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@137 84d2e878-0bd5-11dd-ad15-13eda11d74c5 --- src/physics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/physics.c b/src/physics.c index 34e07da..39a3e09 100644 --- a/src/physics.c +++ b/src/physics.c @@ -35,10 +35,10 @@ #define FRICTION 0.001 /* Lander craft turning speed in radians per ms per ms */ -#define YAWTHRUST (M_PI/3000000) +#define YAWTHRUST (M_PI/1500000) /* Conversion factor between friction and 'yawthrust' */ -#define TORQUE 3 +#define TORQUE 1.5 int physics_point_is_inside_hull(double cx, double cy, double cz, double *fvert, int nfvert, double nx, double ny, double nz) { @@ -358,7 +358,7 @@ void physics_step(Game *game, Uint32 t) { game->lander->yawspeed -= YAWTHRUST * dt; /* -ve yaw is "left" */ } if ( game->turn_right && !game->lander->landed ) { - game->lander->yawspeed += YAWTHRUST *dt; /* +ve yaw is "right" */ + game->lander->yawspeed += YAWTHRUST * dt; /* +ve yaw is "right" */ } physics_process(game->lander, dt, game); -- cgit v1.2.3