computeHookeForce
computeHookeForce(displacement, stiffness) ⇒ number
Spring force calculation
Kind: global function
Returns: number - force in the direction of displacement exerted by the spring trying to pull back
| Param | Type | Description |
|---|---|---|
| displacement | number | how far the spring is being stretched from its resting state |
| stiffness | number | how still is the spring |