[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cinvoke-svn] r133 - trunk/skorpion
From: |
will |
Subject: |
[cinvoke-svn] r133 - trunk/skorpion |
Date: |
10 Dec 2006 00:06:05 -0500 |
Author: p
Date: 2006-12-10 00:06:04 -0500 (Sun, 10 Dec 2006)
New Revision: 133
Modified:
trunk/skorpion/Client.cs
trunk/skorpion/skorpion.cs
Log:
set ship velocity
Modified: trunk/skorpion/Client.cs
===================================================================
--- trunk/skorpion/Client.cs 2006-12-08 18:05:41 UTC (rev 132)
+++ trunk/skorpion/Client.cs 2006-12-10 05:06:04 UTC (rev 133)
@@ -261,11 +261,11 @@
if (!LastFrame.Contains(de.Key))
continue;
- ((Entity)de.Value).Position =
((Entity)LastFrame[de.Key]).Position;
+ ((Entity)de.Value).Position =
((Entity)LastFrame[de.Key]).Position;
+ ((Entity)de.Value).Velocity =
((Entity)NextFrame[de.Key]).Position - ((Entity)LastFrame[de.Key]).Position;
if (t > 0 && RefreshInterval > 0)
- ((Entity)de.Value).Position +=
-
(((Entity)NextFrame[de.Key]).Position - ((Entity)LastFrame[de.Key]).Position)
+ ((Entity)de.Value).Position +=
((Entity)de.Value).Velocity
* ((float)t /
(float)RefreshInterval);
if ((ushort)de.Key == MyID &&
GlobalState.CamNum != 3)
Modified: trunk/skorpion/skorpion.cs
===================================================================
--- trunk/skorpion/skorpion.cs 2006-12-08 18:05:41 UTC (rev 132)
+++ trunk/skorpion/skorpion.cs 2006-12-10 05:06:04 UTC (rev 133)
@@ -41,7 +41,7 @@
public static CreateFlags DevFlags =
CreateFlags.HardwareVertexProcessing;
public static ushort Team = 1;
- public static bool Thrusters = false;
+ public static bool Thrusters = true;
public static bool TexturedField = true;
public static bool ClientStart = true;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cinvoke-svn] r133 - trunk/skorpion,
will <=