public Cannon(Texture2D texture, Vector2 position, Vector2 direction) : base(texture, position) { cannonRect = new Rectangle((int)position.X - 16, (int)position.Y - 16, texture.Width, texture.Height); origin.X = texture.Width / 2; origin.Y = texture.Height / 2; this.Direction = direction; updateRotation(); }