Behavior · Published v1

AcousticAcceleration

AcousticAcceleration from Resonance Chamber.

From Resonance Chamber · v2. Edit this definition in its source simulation.

Source

behavior AcousticAcceleration for Acoustic {
    update {
        let curvature = sum n in neighbors[Acoustic] { n.displacement - self.displacement };
        set self.velocity = clamp((self.velocity + curvature * 0.12) * self.damping, -0.6, 0.6);
    }
}

Building blocks

These exact versions are included when you reuse this artifact.

PropertyAcoustic@hyle · v1