Contents

init(strength:direction:)

Creates a constant force effect.

Declaration

init(strength: Double, direction: SIMD3<Float>)

Parameters

  • strength:

    The magnitude of the force.

  • direction:

    The direction of the force relative to the effect’s transform.