Waking the creatures...

CREATURE
SANCTUARY

Collect · Sort · Discover
Collection128 / 480
Habitats12 / 40

Find their perfect home

Habitat lab

Click a habitat in the shelves to choose it.
Temperature20 °C
Humidity50 %
Day length5 s

Comfort of each species here

Population N(t) and happiness h(t)

blue: N / K   green: happiness h   dashed: analytic logistic
The science

Comfort. Each species has a preferred temperature T* and relative humidity RH*. Comfort is the product of two Gaussians: c = exp(-½((T-T*)/σT)²) · exp(-½((RH-RH*)/σRH)²).

Climate control. The glass box exchanges heat with a heater/mister at the set-point (Newton's law of cooling): dT/dt = (Tset - T)/τ, so T(t) = Tset + (T0 - Tset)e-t/τ. The same form drives humidity.

Growth. Births follow a logistic law limited by the carrying capacity K (space) and scaled by comfort: dN/dt = r·c·N(1-N/K) - d(1-c)N. With constant c the exact solution is a logistic curve with rate r·c-d(1-c); the integrator (RK4) is checked against it below. Happiness relaxes to comfort: dh/dt=(c-h)/τh. A habitat is settled when N rounds to K and h ≥ 0.8.

Simplifications. Population is a continuous number rounded for display; one species per habitat; real animals have age structure and noise, and the preferred values here are invented for imaginary creatures. A day lasts a few real seconds.

Made with 🟠 Blender · Three.js