I try to translate my spring animations to be used with the POP (ios) Framework using this script: https://gist.github.com/koenbok/e9a0f7d763ac28eda880
But the values I get are just wrong:» tensionFromQcValue: 1339.4194» qcValueFromTension: -44.75138121546961430» frictionFromQcValue: 117625» qcValueFromFriction: -8.3333333333333348
Please help, I would love to have the same spring curves in the iPhone App, not just within the prototype.
Try adding parentheses around the formula part. Like
print "tensionFromQcValue: " + ((qcValue - 30.0) * 3.62 + 194.0)
Now you add the text "194" to the textual (string) result of (qcValue - 30.0) * 3.62
Jean: Are you saying like this? http://cl.ly/ZwhB
Jean Joskin in your formular, what is qcValue, tension, friction? I thought these were the values for it: "spring(400,32,0)"
But this can't be right, qcValueFromFriction would negative…
Anyone ran into this?