Ver código fonte

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

badlogic 6 anos atrás
pai
commit
ebf649a23e
1 arquivos alterados com 8 adições e 0 exclusões
  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;
 	_active = inValue;
 }
 }
 
 
+float IkConstraint::getSoftness() {
+    return _softness;
+}
+
+void IkConstraint::setSoftness(float inValue) {
+    _softness = inValue;
+}
+