Beispiel #1
0
        public bool cirlColChek(CircleBoundingComp colliderA, CircleBoundingComp colliderB)
        {
            result      = false;
            totalRadius = colliderA.radius + colliderB.radius;
            aObj        = colliderA.gameObject.GetTransform().Position + colliderA.offset;
            bObj        = colliderB.gameObject.GetTransform().Position + colliderB.offset;
            result      = totalRadius > Math.Abs((Math.Pow((aObj.X + bObj.X), 2) - Math.Pow((aObj.Y + bObj.Y), 2)));

            return(result);
        }
Beispiel #2
0
 public bool cirlBoxChek(CircleBoundingComp circColliderA, BoundingBoxComp boxColliderB)
 {
     return(true);
 }