From 9f968320c83ce79f98006dec71674feff4686e3b Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Thu, 1 Jul 2021 18:46:13 -0400 Subject: (mkosarek) Updated roadmap --- 2d/_collisions/polygon_polygon/dist/output.wasm | Bin 57769 -> 57746 bytes 2d/_collisions/polygon_polygon/main.cpp | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to '2d/_collisions/polygon_polygon') diff --git a/2d/_collisions/polygon_polygon/dist/output.wasm b/2d/_collisions/polygon_polygon/dist/output.wasm index d865038..f4ef9bb 100755 Binary files a/2d/_collisions/polygon_polygon/dist/output.wasm and b/2d/_collisions/polygon_polygon/dist/output.wasm differ diff --git a/2d/_collisions/polygon_polygon/main.cpp b/2d/_collisions/polygon_polygon/main.cpp index ff01e52..e85cc25 100644 --- a/2d/_collisions/polygon_polygon/main.cpp +++ b/2d/_collisions/polygon_polygon/main.cpp @@ -403,8 +403,6 @@ void update(float32 deltaTimeSeconds, void* userData) { continue; } - printf("Might intersect\n"); - first->calculateTransformedVertices(); second->calculateTransformedVertices(); @@ -416,13 +414,14 @@ void update(float32 deltaTimeSeconds, void* userData) { // Handle collison here IntersectionResult irCopy = ir; float32 copyDt = deltaTimeSeconds; + float32 subdivisionDt = copyDt / 8.f; do { first->restorePreviousBody(); second->restorePreviousBody(); ir = irCopy; - copyDt = copyDt /= 2.f; + copyDt = copyDt - subdivisionDt; first->update(copyDt); second->update(copyDt); -- cgit v1.2.1