]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/beamgate.cpp
Store and export information about detected MFX locomotives
[r2c2.git] / source / libr2c2 / beamgate.cpp
index bb382ffe89c04681dd559c52ca844621229a2109..698cb4595ac5fa1091993ad78842b855ee9ca0c6 100644 (file)
@@ -54,9 +54,10 @@ void BeamGate::update_attachment()
 
        if(track)
        {
-               TrackPoint tp = track.point();
-               position = tp.pos;
-               rotation = tp.dir;
+               OrientedPoint p = track.point();
+               position = p.position;
+               rotation = p.rotation;
+               tilt = p.tilt;
        }
 }