Parcourir la source

[cpp] Closes #1408, missing softness getter/setter on IkConstraint.

badlogic il y a 6 ans
Parent
commit
ebf649a23e
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      spine-cpp/spine-cpp/src/spine/IkConstraint.cpp

+ 8 - 0
spine-cpp/spine-cpp/src/spine/IkConstraint.cpp

@@ -325,3 +325,11 @@ void IkConstraint::setActive(bool inValue) {
 	_active = inValue;
 }
 
+float IkConstraint::getSoftness() {
+    return _softness;
+}
+
+void IkConstraint::setSoftness(float inValue) {
+    _softness = inValue;
+}
+