public override void Process(Entity e) { Transform transform = transformMapper.Get(e); Velocity velocity = velocityMapper.Get(e); if (transform.GetX() > spriteBatch.GraphicsDevice.Viewport.Width || transform.GetX() < 0) { velocity.AddAngle(180); } }