///// Methods ///// public CollisionResult TestCollision(ICollisionShape other) { var result = new CollisionResult(); if (other is BoxShape) { result.Collides = BoxVsBox(this, (BoxShape)other, ref result, TwoD); } else { Debug.LogErrorFormat("Collision test not implemented: {0}-{1}", GetType(), other.GetType()); } return(result); }