Exemplo n.º 1
0
 public void Draw(Renderer2D renderer, GameTime time)
 {
     renderer.DrawFilledRectangle(new Rectangle((int)nPC.Position.X, (int)nPC.Position.Y, (int)nPC.Size.X, (int)nPC.Size.Y), color);
     if (ShowVelocity.HasValue)
     {
         renderer.DrawVector(nPC.Velocity, nPC.Center, ShowVelocity.Value, 2);
     }
     if (ShowAcceleration.HasValue)
     {
         renderer.DrawVector(nPC.Acceleration, nPC.Center, ShowAcceleration.Value, 1);
     }
 }