From f2461c4f398497d0f185fdfbe8eeb2c4448bfdb9 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 18 Sep 2023 13:56:48 -0700 Subject: [PATCH] algebra wrong --- src/body.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/body.rs b/src/body.rs index 1a02036..0a2de9a 100644 --- a/src/body.rs +++ b/src/body.rs @@ -382,7 +382,7 @@ impl PhysicsState { if 0<=t_time&&t_timemesh1.max.y&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.ymesh1.max.y&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.ymesh1.max.x&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.xmesh1.max.x&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.xmesh1.max.y&&mesh0.max.x+dp.xmesh1.max.x { + if mesh1.min.ymesh1.max.y&&mesh0.max.x+dp.xmesh1.max.x { + if mesh1.min.ymesh1.max.y&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.ymesh1.max.y&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.ymesh1.max.x&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.xmesh1.max.x&&mesh0.max.z+dp.zmesh1.max.z { + if mesh1.min.xmesh1.max.y&&mesh0.max.x+dp.xmesh1.max.x { + if mesh1.min.ymesh1.max.y&&mesh0.max.x+dp.xmesh1.max.x { + if mesh1.min.y