mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 08:39:19 +02:00
feat(editor): laid track stands on the ground with the foot of its ballast
- each click of the lay tool and the end of a drag out of a free end take the height of the ground under the lower foot of the ballast plus its depth, the rails never under the ground at the axis - heights between the clicks follow a curve which keeps the grade of the track laid from at the joint and leaves with the grade of the chord, onto a free end with the grade of that track; no grade limits - the cursor follows the ground along its ray instead of the level of the last point - self-test layclicks: heights of the ground and the track, grades and grade breaks at the joints
This commit is contained in:
@@ -1144,6 +1144,9 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
bool switch_reach(glm::dvec3 const &Ground, glm::dvec3 &Point);
|
||||
glm::dvec3 cursor_ground() const;
|
||||
glm::dvec3 cursor_level(double const Height) const;
|
||||
glm::dvec3 cursor_terrain(double const Height);
|
||||
double bed_height(glm::dvec3 const &Point, glm::dvec2 const &Direction, TTrack const *Style);
|
||||
glm::dvec3 lay_bed(glm::dvec3 const &Point);
|
||||
std::optional<glm::dvec3> m_cursor_override;
|
||||
bool sweep_grabs(glm::dvec3 const &Point);
|
||||
// menu of the path a click of the right mouse button lands on
|
||||
|
||||
Reference in New Issue
Block a user