Constructor
new Viscosity(radius, linearCoeff, QuadraticCoeff, maxU)
Instantiates new Viscosity
object
Name | Type | Description |
---|---|---|
radius | Number | |
linearCoeff | Number | the coefficient of linear drag, dominant at lower speeds (recommend [0, 1]) |
QuadraticCoeff | Number | the coefficient of quadratic drag, dominant at higher speeds (recommend [0, 1]) |
maxU | Number | maximum impulse correction value, constraining it can increase stability |
- Source
Extends
Methods
applyBehavior(particle, particles, timeStep)
Apply behavior on particle
and/or particles
- Overrides
- Source
applyCorrection(particle, particles)
This class does not require final position corrections
- Overrides
- Source
range() → {null}
Returns the effective range / defines the size of the nearby range
- Overrides
- Source
- Type:
- null