The simple geometry behind any road
Posted by azhenley 5 days ago
Comments
Comment by jstanley 3 days ago
A clothoid is used to connect two lines the same way your fillet is, except instead of just 1 radius it has a radius configured for each end and smoothly changes in between.
https://en.wikipedia.org/wiki/Euler_spiral
They are also used in railways, because on a railway you don't have the freedom of moving the car's position across the road, so a transition from a straight track to a constant radius would imply an instantaneous step change in centrifugal force, or infinite jerk. Using a clothoid to smooth the change between the straight track and the constant-radius turn means the lateral acceleration increases smoothly instead of instantaneously.
Comment by Ef996 2 days ago
A clothoid is simply a mathematically ideal way to achieve continuously increasing curvature along a path. In practice, it can be approximated by chaining multiple circular arcs with decreasing radii.
Comment by trelbutate 3 days ago
Although re-reading that it seems they just don't want to deal with the math involved
Comment by ajs1998 2 days ago
Comment by amelius 3 days ago
https://www.dgp.toronto.edu/~mccrae/projects/clothoid/sbim20...
Comment by nkrisc 2 days ago
Obviously it’s much less of a problem in a game, but it can look strange if you’ve implemented animations that make vehicles lean when going around curves or are limiting vehicle speeds based on those computed lateral forces.
In a game at least, there’s lots of simple ways to work around the issue (just use some kind of fake, arbitrary smoothing on changes in lateral forces).
In a real road, it would likely not feel good and probably would cause issues.
Comment by kalmar 3 days ago
Comment by pontifier 1 day ago
Comment by pvillano 2 days ago
I want to design a "smooth" closed path that fits in a square, as long as I can make it. It needs to smooth in such a way that a constant velocity can be maintained subject to limits on acceleration and jerk. The point is to develop a test for maximum flow rate on a filament 3D printer without the motion system ever slowing the tool-head down. (In reality, the standard smoothed "E" shape is good enough. This is more of an exercise.)
I know roads are designed to limit acceleration and jerk, and someone knowledgeable about road design would know about finding curves with constraints on acceleration and jerk.
Do you know any free tools or resources on theory that I could use?
Comment by red_admiral 3 days ago
Comment by OgsyedIE 3 days ago
https://en.wikipedia.org/wiki/Geometric_design_of_roads
It's tempting to think that the cross-section geometry of a road only applies in three dimensions and can be elided for 2D overheads, but the parabolas that smoothly connect straights and curves in the overhead perspective are often subtly warped to permit any requirements of cant and superelevation.
Comment by joshu 2 days ago
Comment by srean 2 days ago
If any HN folks have pointers, would love that.
Comment by the_arun 2 days ago
Comment by lencastre 3 days ago
Comment by 21asdffdsa12 3 days ago
Comment by dilberx 3 days ago