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.html | 4 ++++ 2d/_collisions/polygon_polygon/dist/output.wasm | Bin 57769 -> 57746 bytes 2d/_collisions/polygon_polygon/main.cpp | 5 ++--- roadmap.html | 19 +++++++++++++++++-- roadmap.html.content | 19 +++++++++++++++++-- transpiler/transpiler | Bin 49712 -> 52160 bytes 6 files changed, 40 insertions(+), 7 deletions(-) diff --git a/2d/_collisions/polygon_polygon.html b/2d/_collisions/polygon_polygon.html index 2e22f49..f401385 100644 --- a/2d/_collisions/polygon_polygon.html +++ b/2d/_collisions/polygon_polygon.html @@ -255,6 +255,10 @@

I'm sure someone more inclined to proving mathematical truities would love to describe this to you, but, for all intents and purposes, this intutitive understanding is good enough for us. We just want to make games, anyhow. +
+ +

Finding which point causes the intersection

+

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); diff --git a/roadmap.html b/roadmap.html index 274fe09..f4c7113 100644 --- a/roadmap.html +++ b/roadmap.html @@ -107,16 +107,31 @@

July 2021: 3D headway (Planning)

    -
  • Explanation of Quaternions
  • +
  • Finish SAT Collision Info (very close)
  • +
  • 2D rigidbody explanation 3
  • 3D Rigid Body Collisions
  • ZIP file creator for downloads
  • +
  • Explanation of Quaternions
+

+ The last two months went almost as planned. I think I misjudged how long and how much brainpower it would + take me to write explanations for all of these things. A classic engineer mistake. We see writing, + and we think, "Easy, I can do that." And I usually can, but I am a bit rusty as of late. Additionally, this + writing involved a lot of diagrams and math equations that I struggled to put into HTML. I even had to learn + to make some simple drawings in gimp, which was a bit of a hurdle. +

+ That being said, I am fairly configdent that I can finish the above items in the month of July (maybe minus the + quaternion work, but we will see). To get my confidence up, I am going to begin with the ZIP file creator for + downloading individual projects. That will definitely be worthwhile. +

May/June 2021: More Collisions

  • SAT Collisions for Convex Polygons with Explanation
  • -
  • 2D rigidbody physics demos + explanations
  • +
  • 2D rigidbody physics demo + explanation 1
  • +
  • 2D rigidbody physics demo + explanation 2
  • +
  • 2D rigidbody physics demo + explanation 3
  • Remove (or hide) ellipse collision pages for now
  • 3D scene setup
  • 3D scene basic physics with spheres bouncing around a scene
  • diff --git a/roadmap.html.content b/roadmap.html.content index 5e662cc..460828f 100644 --- a/roadmap.html.content +++ b/roadmap.html.content @@ -55,16 +55,31 @@

    July 2021: 3D headway (Planning)

      -
    • Explanation of Quaternions
    • +
    • Finish SAT Collision Info (very close)
    • +
    • 2D rigidbody explanation 3
    • 3D Rigid Body Collisions
    • ZIP file creator for downloads
    • +
    • Explanation of Quaternions
    +

    + The last two months went almost as planned. I think I misjudged how long and how much brainpower it would + take me to write explanations for all of these things. A classic engineer mistake. We see writing, + and we think, "Easy, I can do that." And I usually can, but I am a bit rusty as of late. Additionally, this + writing involved a lot of diagrams and math equations that I struggled to put into HTML. I even had to learn + to make some simple drawings in gimp, which was a bit of a hurdle. +

    + That being said, I am fairly configdent that I can finish the above items in the month of July (maybe minus the + quaternion work, but we will see). To get my confidence up, I am going to begin with the ZIP file creator for + downloading individual projects. That will definitely be worthwhile. +

    May/June 2021: More Collisions

    • SAT Collisions for Convex Polygons with Explanation
    • -
    • 2D rigidbody physics demos + explanations
    • +
    • 2D rigidbody physics demo + explanation 1
    • +
    • 2D rigidbody physics demo + explanation 2
    • +
    • 2D rigidbody physics demo + explanation 3
    • Remove (or hide) ellipse collision pages for now
    • 3D scene setup
    • 3D scene basic physics with spheres bouncing around a scene
    • diff --git a/transpiler/transpiler b/transpiler/transpiler index c7ef4fc..60e0eec 100755 Binary files a/transpiler/transpiler and b/transpiler/transpiler differ -- cgit v1.2.1