Melting Cheese

A block of cheese warms up, softens and spreads. A stylized melting demo.

Published

No video preview yet

Source

// A reusable wedge with three Swiss-cheese holes, over a passive dark platform.
// The invisible fixed domain receives the melt; no cells or mass are spawned by stepping.
use models { Cheese, FondueSpace, FonduePan };
place FondueSpace in box([-14, -11, 1], [15, 12, 11]);
let wedge = object {
	place Cheese in box([-7, -7, 1], [8, 8, 8])
		when abs(position.y) <= (8 - position.x) * 0.5;
	erase sphere([-4, -1, 7], 1.8);
	erase sphere([-6, 3, 4], 1.8);
	erase sphere([2, 0, 4], 1.5);
};
place wedge at [0, 0, 0];
place FonduePan in box([-15, -12, 0], [16, 13, 1]);
place FonduePan in box([-15, -12, 1], [16, 13, 2])
	when abs(position.x) == 15 || abs(position.y) == 12;
// Open handles remain visible around the puddle.
place FonduePan in box([-19, -4, 0], [20, 5, 1])
	when abs(position.x) >= 16 && (abs(position.x) == 19 || abs(position.y) == 4);