Hacker News new | ask | show | jobs
by anslo 1328 days ago
Physics are always a major headache - mine are pretty hacky and cut a lot of corners, such as ignoring trees or preventing the car from flipping. I only height-test the wheels, progress them independently, and then resolve the chassis position from that. It's not terribly physically accurate but it gets the job done, and is pretty cheap!
1 comments

Yeah these simple approaches are great and a bit of a lost art. Physics engines give a lot of flexibility and emergent behaviour but add a lot of complication when you want to constrain the madness. I wrote my own simple vehicle for our platform the other day which was a lot of fun:

https://dotbigbang.com/game/b0e8bf8b309b44a3b0abed8f9525e335...