- vector near_point = box_nearest(paddle.mins+paddle.origin,
- paddle.maxs+paddle.origin, ball.origin);
- return vlen(near_point-ball.origin) <= ball.pong_length ;
+
+#if 1
+ vector near_point = box_nearest(paddle.m_mins+paddle.origin,
+ paddle.m_maxs+paddle.origin, ball.origin);
+ return vdist(near_point - ball.origin, <=, ball.pong_length);
+#else
+ return boxesoverlap(paddle.m_mins + paddle.origin, paddle.m_maxs + paddle.origin, ball.m_mins + ball.origin, ball.m_maxs + ball.origin);
+#endif