[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cinvoke-svn] r145 - trunk/skorpion
From: |
will |
Subject: |
[cinvoke-svn] r145 - trunk/skorpion |
Date: |
19 Mar 2007 03:22:44 -0400 |
Author: vmy
Date: 2007-03-19 03:22:43 -0400 (Mon, 19 Mar 2007)
New Revision: 145
Modified:
trunk/skorpion/skorpion.cs
Log:
correctly positioned thrusters over appropriate spots on models; corrected
thruster bidirectionality with a better approximation of the per frame timespan
Modified: trunk/skorpion/skorpion.cs
===================================================================
--- trunk/skorpion/skorpion.cs 2007-03-16 07:59:06 UTC (rev 144)
+++ trunk/skorpion/skorpion.cs 2007-03-19 07:22:43 UTC (rev 145)
@@ -631,15 +631,16 @@
Vector3 right = Vector3.Cross(ort, up);
right.Normalize();
- Vector3 position = s.Position + (s.Orientation * -5.5f)
+ (s.UpDirection * 10.5f);
+ Vector3 position = s.Position + (s.Orientation *
-1.75f) + (s.UpDirection * 10.5f) - (right * .5f);
Vector3 orientation = new Vector3(s.Velocity.X,
s.Velocity.Y, s.Velocity.Z);
orientation.Scale(-10);
- iThrusterParticleSystem.Update(.03F,
+ iThrusterParticleSystem.Update(.3F,
g_clrColor[(int)iThrusterParticleColor],
g_clrColorFade[(int)iThrusterParticleColor],
position, orientation);
+
iDevice.RenderState.ZBufferWriteEnable = false;
iDevice.RenderState.AlphaBlendEnable = true;
iDevice.RenderState.SourceBlend = Blend.One;
@@ -649,10 +650,10 @@
iDevice.RenderState.ZBufferWriteEnable = true;
iDevice.RenderState.AlphaBlendEnable = false;
- position = s.Position + (s.Orientation * -5.5f) +
(s.UpDirection * -8f)
- + (right * 11);
+ position = s.Position + (s.Orientation * -1.75f) +
(s.UpDirection * -7)
+ + (right * 10.5f);
- iThrusterParticleSystem.Update(.03F,
+ iThrusterParticleSystem.Update(.3F,
g_clrColor[(int)iThrusterParticleColor],
g_clrColorFade[(int)iThrusterParticleColor],
position, orientation);
@@ -665,10 +666,10 @@
iDevice.RenderState.ZBufferWriteEnable = true;
iDevice.RenderState.AlphaBlendEnable = false;
- position = s.Position + (s.Orientation * -5.5f) +
(s.UpDirection * -8f)
- + (right * -11);
+ position = s.Position + (s.Orientation * -1.75f) +
(s.UpDirection * -7f)
+ + (right * -11.5f);
- iThrusterParticleSystem.Update(.03F,
+ iThrusterParticleSystem.Update(.3F,
g_clrColor[(int)iThrusterParticleColor],
g_clrColorFade[(int)iThrusterParticleColor],
position, orientation);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cinvoke-svn] r145 - trunk/skorpion,
will <=