コード例 #1
0
 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);
 }
コード例 #2
0
        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));
        }