Méthode | Description | |
---|---|---|
Solve ( float field, float fieldNew, float fieldSpeed, byte fieldObstruction, |
Performs the wave simulation step.
|
public static Solve ( float field, float fieldNew, float fieldSpeed, byte fieldObstruction, |
||
field | float | /// Represents the current simulation state. /// |
fieldNew | float | /// Represents the updated simulation state. /// |
fieldSpeed | float | /// Represents the simulation state difference. /// |
fieldObstruction | byte |
/// Array of |
gridSize | /// Actual simulation grid resolution. /// | |
timeDelta | float | /// Time delta in seconds. /// |
damping | float | /// Damping value. Must be clamped to the 0-1 range. /// |
maxValue | float | /// Value representing maximal absolute wave height. /// |
Résultat | void |