Beispiel #1
0
        private bool SeparatedOnAxis(OBB obb, Vector2 axis)
        {
            float r = Math.Abs(Vector2.Dot(Center - obb.Center, axis));

            return(Radius(axis) + obb.Radius(axis) < r);
        }