public static bool CheckPixelColls(BaseCollidableEntity C1, BaseCollidableEntity C2) { var C1mat = UtilityMethods.Get2DTransformationMatrix(-C1.Origin, C1.AngleInRad, 2f, C1.Pos); var C2mat = UtilityMethods.Get2DTransformationMatrix(-C2.Origin, C2.AngleInRad, 2f, C2.Pos); return UtilityMethods.TexturesCollide(C1.ColorArrays[C1.CurrentFrameIndex], C1mat, C2.ColorArrays[C2.CurrentFrameIndex], C2mat); }
public static bool CheckPixelColls(BaseCollidableEntity C1, BaseCollidableEntity C2) { var C1mat = UtilityMethods.Get2DTransformationMatrix(-C1.Origin, C1.AngleInRad, 2f, C1.Pos); var C2mat = UtilityMethods.Get2DTransformationMatrix(-C2.Origin, C2.AngleInRad, 2f, C2.Pos); return(UtilityMethods.TexturesCollide(C1.ColorArrays[C1.CurrentFrameIndex], C1mat, C2.ColorArrays[C2.CurrentFrameIndex], C2mat)); }