What is the difference between damping
and frequency
properties of a SKPhysicsJointSpring
?
the code I have is
var spring = SKPhysicsJointSpring.jointWithBodyA(
body1.physicsBody,
bodyB: body2.physicsBody,
anchorA: body1.position,
anchorB: body2.position)
spring.frequency = 1.8
spring.damping = 0.5
self.physicsWorld.addJoint(spring1)
body1.physicsBody?.dynamic = false
body2.physicsBody?.dynamic = true
In what range of values should frequency
and damping
fall so that the spring
acts naturally?