mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-05 16:55:32 +01:00
54ce816b04
The second part of loading a flat scenery onto the fictional planet. The meshes made from the paths took the side of a path as (-dir.z, 0, dir.x) and the up as +y, so on the planet they would lie on their side. - world_geometry::view_scope: a view of the world in the local axes of the body at a point, per thread, only on a curved body. TSegment's points and directions (RaInterpolate, GetFirstDerivative, the ends, the end directions, plan_frame, the joints) are seen through it, so the mesh code, the neighbouring tracks included, works as on the plane. Joints are kept in the world. curved_here() is false in a view. - TTrack::create_geometry, the blades of RaAnimate, the sleeper model transforms, the 3D sleepers (instance(), and the layouts worked out in the background) and TTraction::create_geometry are made in a view at their origin; world_geometry::insert_in_world / replace_in_world (world/worldview.h) turn a copy of the vertices back into the world. - The unevenness field is read in a plan: the tangent plane at the zero of the scenery on a curved body, so the physics and the meshes read the same field (it was read in ECEF x and z before, where x is up). - A scenery that sets no free camera starts it at its zero placed on the body, not at the middle of the body; body::up() gives the pole axis instead of a NaN there. On the plane there is no view and nothing changes: the physics log of td.scn is the same bit for bit.