init(effects:simulationState:)
Creates a force effect component.
Declaration
init(effects: [any ForceEffectBase], simulationState: ForceEffectComponent.SimulationState = .start)Parameters
- effects:
Array of effects to simulate forces with. Forces generated by each effect will be summed.
- simulationState:
The simulation state request, the force effect automatically starts to play by default.