public bool CollisionDetection(CollidingAdvancedSprite CAS)
 {
     CollisionUtils.CreateCollidingSpriteTransformMatrix(CAS);
     CollisionUtils.CreateCollidingSpriteTransformMatrix(this);
     if (Rotation == 0 || Rotation == Math.PI)
     {
         if (Intersects(CAS))
         {
             CollisionUtils.CreateCollidingSpriteTransformMatrix(CAS);
             CollisionUtils.CreateCollidingSpriteTransformMatrix(this);
             CollisionUtils.GetColColors(this);
             CollisionUtils.GetColColors(CAS);
             return(CollisionUtils.IntersectPixels(this.TransformMatrix * Matrix.CreateTranslation(new Vector3(this.currentAnim.ColCorrection, 0f)), this.ColBoundingBox.Width, this.ColBoundingBox.Height, Colors, this.IgnoreTranslucentCol, CAS.TransformMatrix * Matrix.CreateTranslation(new Vector3(CAS.currentAnim.ColCorrection, 0f)), CAS.ColBoundingBox.Width, CAS.ColBoundingBox.Height, CAS.Colors, CAS.IgnoreTranslucentCol));
         }
     }
     else
     {
         CollisionUtils.CreateCollidingSpriteTransformMatrix(CAS);
         CollisionUtils.CreateCollidingSpriteTransformMatrix(this);
         colltemp = CollisionUtils.CalculateBoundingRectangle(tempdrawrect, _transformMatrix);
         if (colltemp.Intersects(CollisionUtils.CalculateBoundingRectangle(CAS.tempdrawrect, CAS._transformMatrix)))
         {
             CollisionUtils.GetColColors(this);
             CollisionUtils.GetColColors(CAS);
             return(CollisionUtils.IntersectPixels(this.TransformMatrix * Matrix.CreateTranslation(new Vector3(this.currentAnim.ColCorrection, 0f)), this.ColBoundingBox.Width, this.ColBoundingBox.Height, Colors, this.IgnoreTranslucentCol, CAS.TransformMatrix * Matrix.CreateTranslation(new Vector3(CAS.currentAnim.ColCorrection, 0f)), CAS.ColBoundingBox.Width, CAS.ColBoundingBox.Height, CAS.Colors, CAS.IgnoreTranslucentCol));
         }
     }
     return(false);
 }
 public override void Update()
 {
     CollisionUtils.CreateCollidingSpriteTransformMatrix(this);
     base.Update();
 }