Contents

init(targetVolume:stiffness:)

Creates an inflation configuration.

Declaration

init(targetVolume: Float, stiffness: Float = 1.0)

Parameters

  • targetVolume:

    The target volume (in ㎥) that the body tries to match.

  • stiffness:

    The resistance to diverge from the target volume. Valid range is [0.0, 1.0].

See Also

Creating an inflation constraint