Beispiel #1
0
 public void Draw(LineBatch3D lineBatch, PointBatch3D pointBatch)
 {
     if (Alive)
     {
         lineBatch.Draw(Position, Position - Velocity * 2.0f, 10.0f, lineColor);
         pointBatch.Draw(Position - Velocity / 2, 5.0f, lightColor);
     }
 }
Beispiel #2
0
 public void Draw(LineBatch3D lineBatch, PointBatch3D pointBatch)
 {
     if (Active)
     {
         Vector3 delta = Velocity;
         delta.Normalize();
         lineBatch.Draw(Position, Position - delta * 15.0f, 5.0f, Color);
         pointBatch.Draw(Position - delta * 7.5f, 15.0f, new Color(Color.R / 2, Color.G / 2, Color.B / 2, Color.A / 2));
     }
 }