aboutsummaryrefslogtreecommitdiff
path: root/src/physics.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-17 18:51:30 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-17 18:51:30 +0000
commitea00365953dac518b388817261430d0efd451aa3 (patch)
tree2964c82df98771edf5dc7c7bf65d1a234d618423 /src/physics.c
parent08015c67ed4922c49d6efbacad8fd4d1052c2b14 (diff)
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
Diffstat (limited to 'src/physics.c')
-rw-r--r--src/physics.c6
1 files changed, 3 insertions, 3 deletions
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);