Re:Show HN: Simple 2D car physics with JavaScript
by pkstn on Wednesday January 01, 2020 @07:22AM
(#21927759)
Yeah, I think that's about what I'm actually working with right now.. Will be live really soon!
Re:Show HN: Simple 2D car physics with JavaScript
by pkstn on Wednesday January 01, 2020 @08:19AM
(#21927894)
Multiplayer is live now!
Re:Show HN: Simple 2D car physics with JavaScript
by glaberficken on Wednesday January 01, 2020 @08:53AM
(#21928000)
funny that you give multiplayer to people and they will use any chance they get to display creativity. look at all the pople trying to draw with their tyres!
Re:Show HN: Simple 2D car physics with JavaScript
by egeozcan on Wednesday January 01, 2020 @09:54AM
(#21928241)
We all know what everyone is trying to draw.
before you venture there I suggest you move the control code outside of the physic code, abstracting car inputs into a throttle, brake, steer structure which is piloted by inputs elsewhere and feed into the physic update tick along with the car state, or it'll make exceptionally hard to build input prediction and lag compensation further on