Version 1.0.3 update. Fixed massive collision bug.


Quite embarrassingly, the last version of KatzenKlein Redux contained a massive collision glitch.
A big thank you to the fellow itch user; frogfann, for actually capturing the glitch on video. Once I saw someone else clip out of bounds; I was able to replicate it a lot more easily.

Here is an artist's rendition of what was going wrong in my code:

The biggest surprise was that the collision error wasn't in my ray->cylinder intersection code, it was in my ray->plane code :/
I ended up going back and reading over Kasper Fauerby's paper "Improved Collision detection and Response", which inspired how I wrote my collision system to begin with. I rewrote his plane intersection to fit into my engine and all seemed great!

...until I realized that sometimes bullets would go through walls... I'm not sure why this was happening at all. Maybe it's the bullets smaller ellipsoid size? I dunno... I'm quite daft, so the plane check first checks with the new method and if it doesn't find a collision, it double checks with my old code... very janky, but it seems to work.

I then played through the game many times, running into walls at odd angles and jumping at corners. I noticed some new slight oddities, but I wasn't able to clip out of the map... so potentially a small victory?

One thing I ended up being very confused by is in the Windows release build; there are some roof sections that don't allow decals on them... But they do in the Linux and Android version. Oddly enough, they also worked in the Windows debug build.... I have no clue why this happens. Compilers are odd.

Here is one of those mysterious decal-averse roof sections:

A big thank you to everyone who checked out my li'l game. Very much appreciated.
-K. A. Laherty 29/08/2024

Files

KKR_linux_1_0_3.tar.gz 10 MB
19 days ago
KKR_win_1_0_3.zip 9.9 MB
19 days ago
KKR_1_0_3.apk 12 MB
19 days ago

Get KatzenKlein Redux

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.