This hack brought to you by obviously glitchy collision detection on
objects that have a non-identity orientation, linear velocity, but no
angular velocity.
git-svn-id: https://s.snth.net/svn/neverball/trunk@3227
78b8d119-cf0a-0410-b17c-
f493084dd1d7
/* Transform velocity. */
- v_sub(v, up->v, W);
- q_rot(ball.v, e, v);
+ q_rot(ball.v, e, up->v);
/* Also add the velocity from rotation. */
v[1] = 0.0f;
v[2] = 0.0f;
- w[0] = 0.0f;
- w[1] = 0.0f;
- w[2] = 0.0f;
+ q_rot(w, e, W);
if ((u = sol_test_node(t, U, &ball, fp, np, v, w)) < t)
{