X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fbeamgate.cpp;h=698cb4595ac5fa1091993ad78842b855ee9ca0c6;hb=d41f66805bc9fe0b33e3d46b47f52e67b5782028;hp=550c97c4ca457ace5deed6f5c9fdec7ae8fe8562;hpb=c4daf1cc6b53cae34e46d4125a993ceed500de1a;p=r2c2.git diff --git a/source/libr2c2/beamgate.cpp b/source/libr2c2/beamgate.cpp index 550c97c..698cb45 100644 --- a/source/libr2c2/beamgate.cpp +++ b/source/libr2c2/beamgate.cpp @@ -34,11 +34,6 @@ const BeamGateType &BeamGate::get_type() const return BeamGateType::instance(); } -void BeamGate::set_address(unsigned a) -{ - address = a; -} - void BeamGate::set_position(const Vector &p) { position = p; @@ -59,9 +54,10 @@ void BeamGate::update_attachment() if(track) { - TrackPoint tp = track->get_point(track.entry(), offset); - position = tp.pos; - rotation = tp.dir; + OrientedPoint p = track.point(); + position = p.position; + rotation = p.rotation; + tilt = p.tilt; } }