4 ms·
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-
by anslo 4y 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!
- meheleventyone 4y agoYeah 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/hill-climb-challenge-?mp=brumbrum https://dotbigbang.com/game/b0e8bf8b309b44a3b0abed8f9525e335...