Behavior · Published v1

PlanCheeseFall

PlanCheeseFall from Golden Fondue.

From Golden Fondue · v2. Edit this definition in its source simulation.

Source

behavior PlanCheeseFall for FondueMatter + FondueHeat {
	update {
		let mobility = clamp((self.temperature - 0.25) / 0.4, 0.0, 1.0);
		let below = (neighbors[FondueMatter using VonNeumann, -Z].mass else 1.0);
		set self.down = min(self.mass, 1.0 - below) * mobility * 0.85;
	}
}

Building blocks

These exact versions are included when you reuse this artifact.

PropertyFondueMatter@hyle · v1PropertyFondueHeat@hyle · v1