From 975bf163990f217749584d15a450931e600ce2c9 Mon Sep 17 00:00:00 2001 From: Miloslav Ciz Date: Sun, 20 Apr 2025 13:45:36 +0200 Subject: [PATCH] Address some TODOs --- README.md | 2 +- TODO.txt | 15 +++++++++------ renderer.h | 3 ++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5183b17..467585c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Please note the game is realtively simple and **the physics IS shitty at times** ## Manifesto -At this point I can't possibly summarize my views and life philosophy satisfyingly in a few paragraphs. If you're interested, kindly follow the rabbithole leading to my [website](http://www.tastyfish.cz) etc. If you're easily triggered and offended, rather avoid it. +At this point I can't possibly summarize my views and life philosophy satisfyingly in a few paragraphs. If you're interested, you'll be able to discover a rabbithole around my stuff, but I can almost certainly say you won't like it, so think twice. ## Legal "Rights" diff --git a/TODO.txt b/TODO.txt index b95f88d..be0ba06 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,5 +1,8 @@ =========== GENERAL ============== +- add simple particle effects for grass/dirt/drift? Can be just a few squares + animated from the projected backwheels. +- fix the ramp map again due to new physics - keyboard ghosting is an issue, particularly when initiating drift with brake (arrow keys must be used with S for braking for left drift to work) -- think about what to do about this? or leave as is? @@ -70,18 +73,18 @@ turned on the roof, once even shot to the ceiling of the map. - Managed to get the car stuck in non-rotating state, then after a while get it back by crashing. -- very rarely the near plane overflow bug still happens, maybe shift near plane - a bit further still? -- sometimes during long loading the screen goes black, seems to have appeared - after adding LCR_LOADING_COMMAND (seems fixed now) - immediately after starting the map countdown seems to be lower (seems to perhaps be caused by nextPhysicsFrameTime, look into it) -- the pinch collision test seems to sometimes stop the car e.g. after falling - from bigger height or when running into ramp at high speed (or not?) - FIX =========== HANDLED ============== - MAP4: one triangle in top section is missing! +- the pinch collision test seems to sometimes stop the car e.g. after falling + from bigger height or when running into ramp at high speed (or not?) - FIX +- sometimes during long loading the screen goes black, seems to have appeared + after adding LCR_LOADING_COMMAND (seems fixed now) +- very rarely the near plane overflow bug still happens, maybe shift near plane + a bit further still? - Unstuck idea: make the body non-rotating for a while? - Create a physics test map. - Antibug: maybe always simulate the step with non-rotating body AND normal one diff --git a/renderer.h b/renderer.h index 1ccbff8..eef6a74 100644 --- a/renderer.h +++ b/renderer.h @@ -34,7 +34,7 @@ #define S3L_FLAT 1 #endif -#define S3L_NEAR (S3L_F / 2) +#define S3L_NEAR (10 * (S3L_F / 16)) // too low value will cause overflows #include "small3dlib.h" /// Renderer specific unit, length of one map square. @@ -2011,6 +2011,7 @@ void LCR_rendererCameraReset(void) LCR_renderer.scene.camera.transform.rotation.x = 0; LCR_renderer.scene.camera.transform.rotation.z = 0; + LCR_rendererCameraFollow(2); LCR_rendererCameraFollow(1); }