Hacker News

Favorites Setup
Comment by joshu | original | 2D Vehicles
[−]joshu · 2026-10-10 Sat 19:42 UTC · link
no dynamics model (uses bicycle model) but i built a solver for parking

http://truckslop.joshu.dev/

[−]murkt · 2026-10-10 Sat 19:54 UTC · link
This is pretty fun!
[−]erikig · 2026-10-10 Sat 20:20 UTC · link
The visualization of potential results is quite mesmerizing.
[−]tonyarkles · 2026-10-11 Sun 03:49 UTC · link
“One cone (Joshua)” is wild for the exploration it does before settling on a solution!
[−]joshu · 2026-10-11 Sun 05:13 UTC · link
yeah that one really tortures it
[−]JK-Swizzle · 2026-10-10 Sat 20:27 UTC · link
That was a lot of fun to play with.

I think the fractal solver is bugged, but maybe I am just using it wrong. It says placing a cone in the red zone will block the vehicle, but either the colors are inverted or the backend is off, because everything is red except a few spots.

Otherwise very fun. I managed to park a truck the solver called impossible :)

Note: Using safari on an iPad of that matters.

[−]joshu · 2026-10-11 Sun 05:13 UTC · link
can you post a screenshot? i haven't tested on ipad
[−]Aeolun · 2026-10-10 Sat 22:59 UTC · link
Is it actually solving anything though? It always seems to get stuck with the semi half sticking out.
[−]joshu · 2026-10-11 Sun 05:13 UTC · link
try different maps, editing the constraints, etc? it's sortof a "torture the optimizer" but it does solve many things
[−]rafeto · 2026-10-11 Sun 10:33 UTC · link
Cool project. Have you tried to implement articulating drawbar trailers[1]? The ones where the first axle of the trailer is fixed to the drawbar, making the front wheels turn when the drawbar moves. They seem to be much more common in Europe than in the US. In my experience, these are much harder to back up than fixed axle trailers.

[1]: https://www.pacton.nl/en/products/drawbar-trailer/drawbar-tr...