diff --git a/Source/cg_TrajectoryManager.cpp b/Source/cg_TrajectoryManager.cpp index 0ec11df..becc046 100644 --- a/Source/cg_TrajectoryManager.cpp +++ b/Source/cg_TrajectoryManager.cpp @@ -176,12 +176,6 @@ Point TrajectoryManager::getCurrentTrajectoryPoint() const } } -//============================================================================== -void TrajectoryManager::setPrimarySourcePosition(Point const & pos) const -{ - mPrimarySource.setPosition(pos, Source::OriginOfChange::trajectory); -} - //============================================================================== void TrajectoryManager::sourceMoved(Source & source) { @@ -220,7 +214,7 @@ void PositionTrajectoryManager::setTrajectoryType(PositionTrajectoryType const t } else { mTrajectory = Trajectory{ type, startPos }; } - // mPrimarySource.setPosition(startPos, Source::OriginOfChange::trajectory); + mBackAndForthDirection = Direction::forward; } //============================================================================== @@ -246,6 +240,7 @@ void ElevationTrajectoryManager::setTrajectoryType(ElevationTrajectoryType const } else { mTrajectory.reset(); } + mBackAndForthDirection = Direction::forward; } //============================================================================== diff --git a/Source/cg_TrajectoryManager.hpp b/Source/cg_TrajectoryManager.hpp index d5477cf..7ed28da 100644 --- a/Source/cg_TrajectoryManager.hpp +++ b/Source/cg_TrajectoryManager.hpp @@ -116,7 +116,6 @@ class TrajectoryManager void setPositionDampeningCycles(int const value) { this->mDampeningCycles = value; } void setDeviationPerCycle(Degrees const value) { this->mDegreeOfDeviationPerCycle = value; } - void setPrimarySourcePosition(Point const & pos) const; void addListener(Listener * l) { mListeners.add(l); } void sourceMoved(Source & source);