SimulationForce class abstract

Something that pushes the cloth around on top of the springs - e.g. the crumple attraction (crumple.dart) or the scheduled pin release (pin_release.dart). Add one with FabricSimulation.addForce; it is dropped automatically once isActive turns false.

Implementers

Constructors

SimulationForce()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
Forces that report false are removed after the current step.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

afterIterations(FabricSimulation sim) → void
Once per step, after all solver iterations.
applyIteration(FabricSimulation sim) → void
Every solver iteration, right after the springs were satisfied.
beforeStep(FabricSimulation sim) → void
Once per step, before the nodes are integrated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited