diff --git a/bounce_cpp/bounce_cpp.vcxproj b/bounce_cpp/bounce_cpp.vcxproj index 1e0ccf0..b5f6947 100644 --- a/bounce_cpp/bounce_cpp.vcxproj +++ b/bounce_cpp/bounce_cpp.vcxproj @@ -43,13 +43,13 @@ Application true - v143 + v145 Unicode Application false - v143 + v145 true Unicode @@ -110,6 +110,8 @@ Windows true + gdiplus.lib; +winmm.lib;%(AdditionalDependencies) diff --git a/bounce_cpp/hyrax_exe-TeX_07_05_2026.pdf b/bounce_cpp/hyrax_exe-TeX_07_05_2026.pdf new file mode 100644 index 0000000..6e2b793 Binary files /dev/null and b/bounce_cpp/hyrax_exe-TeX_07_05_2026.pdf differ diff --git a/bounce_cpp/physics.cpp b/bounce_cpp/physics.cpp index e39f6e9..03784f8 100644 --- a/bounce_cpp/physics.cpp +++ b/bounce_cpp/physics.cpp @@ -1,13 +1,13 @@ /* Preamble: These exact physics calculations are documented in a TeX Document soon to be in the source tree of - the project. (as of 06/05/26 not in the tree) + the project. (as of 06/05/26 not in the tree; as of 07/05/26 there is a TeX doc. file name: hyrax_exe-TeX_07_05_2026.pdf) The physics calculations are done using a Semi-Implicit Euler integrator. (big words) | Parameter | Value | Description | Mapped code identifier | |--------------------|--------|------------------------------------------------|------------------------------| - | `GRAVITY` | 1200.0 | Downward acceleration (px s⁻²) | `GRAVITY` (constant) | + | `GRAVITY` | 1200.0 | Downward acceleration (px s^-2) | `GRAVITY` (constant) | | `RESTITUTION` | 0.6 | Energy retention after bounce | `RESTITUTION` (constant) | | `AIR_DRAG` | 0.999 | Velocity multiplier per frame | `AIR_DRAG` (constant) | | `GROUND_FRICTION` | 0.8 | Horizontal speed reduction on ground | `GROUND_FRICTION` (constant) | diff --git a/bounce_cpp/physics.h b/bounce_cpp/physics.h index 3e8187b..092db95 100644 --- a/bounce_cpp/physics.h +++ b/bounce_cpp/physics.h @@ -5,8 +5,8 @@ class physics { public: - scd GRAVITY = 1200.0; - scd RESTITUTION = 0.6; + scd GRAVITY = 2500.0; + scd RESTITUTION = 0.9; scd AIR_DRAG = 0.999; scd GROUND_FRICTION = 0.8; scd REST_THRESHOLD = 5.0;