logoalt Hacker News

flowofcontrolyesterday at 6:03 PM2 repliesview on HN

my car keeps hitting the donkey when switching lanes even though I'm already well past it..


Replies

stronglikedanyesterday at 6:11 PM

have you had anything to drink recently?

smackeyackytoday at 12:26 AM

I haven’t looked at the code but the collision detection was buggy even back in the day. You have to switch lanes while there is nothing or a donkey in front of you. If the donkey is in the other lane it registers a hit even if it looks like you passed it

Edit: line 1750 is where it does a simple collision check and yep looks like it registers a collision without checking you’re past the donkey or not