Behavior · Published v1

WaveAcceleration

WaveAcceleration from Neon Tidal Pool.

From Neon Tidal Pool · v2. Edit this definition in its source simulation.

Source

behavior WaveAcceleration for Wave { update { let laplace = sum n in neighbors[Wave] { n.displacement - self.displacement }; set self.velocity = clamp((self.velocity + laplace * 0.16) * 0.995, -0.5, 0.5); } }

Building blocks

These exact versions are included when you reuse this artifact.

PropertyWave@hyle · v1