Revert "Pass linear body velocity to collision detection separately"
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 14 Oct 2010 19:11:40 +0000 (19:11 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 14 Oct 2010 19:11:40 +0000 (19:11 +0000)
This reverts r3227 by parasti.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3308 78b8d119-cf0a-0410-b17c-f493084dd1d7

share/solid_sim_sol.c

index 1eeec42..3231d57 100644 (file)
@@ -558,7 +558,8 @@ static float sol_test_body(float dt,
 
         /* Transform velocity. */
 
-        q_rot(ball.v, e, up->v);
+        v_sub(v, up->v, W);
+        q_rot(ball.v, e, v);
 
         /* Also add the velocity from rotation. */
 
@@ -571,7 +572,9 @@ static float sol_test_body(float dt,
         v[1] = 0.0f;
         v[2] = 0.0f;
 
-        q_rot(w, e, W);
+        w[0] = 0.0f;
+        w[1] = 0.0f;
+        w[2] = 0.0f;
 
         if ((u = sol_test_node(t, U, &ball, fp, np, v, w)) < t)
         {