From 6ebb94b1f4605cbe11a1459782a3bb67eadd1aa7 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Thu, 10 Mar 2016 13:48:32 -0800 Subject: [PATCH] minor API cleanup of SwingLimitFunction API --- libraries/animation/src/SwingTwistConstraint.cpp | 11 ++--------- libraries/animation/src/SwingTwistConstraint.h | 3 --- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/libraries/animation/src/SwingTwistConstraint.cpp b/libraries/animation/src/SwingTwistConstraint.cpp index 3bf661612e..3a2606c5ce 100644 --- a/libraries/animation/src/SwingTwistConstraint.cpp +++ b/libraries/animation/src/SwingTwistConstraint.cpp @@ -24,15 +24,8 @@ const int LAST_CLAMP_NO_BOUNDARY = 0; const int LAST_CLAMP_HIGH_BOUNDARY = 1; SwingTwistConstraint::SwingLimitFunction::SwingLimitFunction() { - setCone(PI); -} - -void SwingTwistConstraint::SwingLimitFunction::setCone(float maxAngle) { - _minDots.clear(); - float minDot = glm::clamp(maxAngle, MIN_MINDOT, MAX_MINDOT); - _minDots.push_back(minDot); - // push the first value to the back to establish cyclic boundary conditions - _minDots.push_back(minDot); + _minDots.push_back(-1.0f); + _minDots.push_back(-1.0f); } void SwingTwistConstraint::SwingLimitFunction::setMinDots(const std::vector& minDots) { diff --git a/libraries/animation/src/SwingTwistConstraint.h b/libraries/animation/src/SwingTwistConstraint.h index f73bbfb233..620e63e98b 100644 --- a/libraries/animation/src/SwingTwistConstraint.h +++ b/libraries/animation/src/SwingTwistConstraint.h @@ -59,9 +59,6 @@ public: public: SwingLimitFunction(); - /// \brief use a uniform conical swing limit - void setCone(float maxAngle); - /// \brief use a vector of lookup values for swing limits void setMinDots(const std::vector& minDots);