SpringConfiguration
public struct SpringConfiguration
The configuration options for a spring function.
-
Strength of the spring.
Declaration
Swift
public var tension: Scalar = 120.0
-
How damped the spring is.
Declaration
Swift
public var damping: Scalar = 12.0
-
The minimum scalar distance used for settling the spring simulation.
Declaration
Swift
public var threshold: Scalar = 0.1
-
Creates a new
SpringConfiguration
instance with default values.Declaration
Swift
public init()