diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-21 16:43:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-21 16:48:04 +0000 |
commit | 605db8cd3778bd2f58a956a0776c1001d7286def (patch) | |
tree | f7cad28fb8480cf6b7f11353907c4fed9856f04c /game/vehicles/railloco.h | |
parent | fix.arc (diff) | |
download | ilt-605db8cd3778bd2f58a956a0776c1001d7286def.tar.bz2 ilt-605db8cd3778bd2f58a956a0776c1001d7286def.tar.xz ilt-605db8cd3778bd2f58a956a0776c1001d7286def.zip |
Named model parts, fix bogie spelling, new brush47 model
Diffstat (limited to 'game/vehicles/railloco.h')
-rw-r--r-- | game/vehicles/railloco.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/vehicles/railloco.h b/game/vehicles/railloco.h index df5f970..ddc706f 100644 --- a/game/vehicles/railloco.h +++ b/game/vehicles/railloco.h @@ -12,7 +12,7 @@ class Shader; class Texture; class RailVehicle : public Vehicle { public: - struct Bogey { + struct Bogie { Transform location; MeshPtr mesh; }; @@ -20,7 +20,7 @@ public: using Vehicle::Vehicle; void render(const Shader & shader) const override; - std::array<Bogey, 2> bogeys; + std::array<Bogie, 2> bogies; MeshPtr bodyMesh; std::shared_ptr<Texture> texture; float wheelBase; @@ -45,7 +45,7 @@ public: private: void move(TickDuration dur); - [[nodiscard]] Transform getBogeyPosition(float linkDist, float dist) const; + [[nodiscard]] Transform getBogiePosition(float linkDist, float dist) const; void updateRailVehiclePosition(RailVehicle *, float trailBy) const; void updateWagons() const; }; |