r5091 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Nov 25 03:07:16 EST 2008
Author: div0
Date: 2008-11-25 03:07:15 -0500 (Tue, 25 Nov 2008)
New Revision: 5091
Modified:
trunk/data/qcsrc/server/cl_physics.qc
Log:
align the car better to the surface
Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc 2008-11-25 06:23:44 UTC (rev 5090)
+++ trunk/data/qcsrc/server/cl_physics.qc 2008-11-25 08:07:15 UTC (rev 5091)
@@ -300,12 +300,13 @@
tracebox(self.origin, self.mins, self.maxs, self.origin - '0 0 4', MOVE_NORMAL, self);
if(trace_fraction != 1)
{
- self.angles = vectoangles(
+ self.angles = vectoangles2(
'1 0 0' * v_forward_x * trace_plane_normal_z
+
'0 1 0' * v_forward_y * trace_plane_normal_z
+
- '0 0 1' * -(v_forward_x * trace_plane_normal_x + v_forward_y * trace_plane_normal_y)
+ '0 0 1' * -(v_forward_x * trace_plane_normal_x + v_forward_y * trace_plane_normal_y),
+ trace_plane_normal
);
}
else
More information about the nexuiz-commits
mailing list