Constraint
interface cannot be instantiated
- Source
Methods
applyCorrection(timeStep)
Applies positional correction on particle.
Parameters:
Name | Type | Description |
---|---|---|
timeStep | Number |
- Source
(abstract) particles() → {Array.<Particle>}
Calculates the list of particles that is involved with the constraint
- Source
Returns:
- Type:
- Array.<Particle>
(abstract) update(timeStep)
Updates the constraint.
Parameters:
Name | Type | Description |
---|---|---|
timeStep | Number |
- Source
(abstract) vertices() → {Array.<Vector2D>}
Calculates the list of vertices that will be used in the rendering process
- Source
Returns:
- Type:
- Array.<Vector2D>