Cells face where they move; a click outside closes the evolution window
Foundation / checks (checks) (push) Successful in 45m19s
Foundation / checks (deploy) (push) Successful in 3m45s
Foundation / checks (ecs) (push) Successful in 2m16s
Foundation / checks (network) (push) Successful in 19m17s
Foundation / checks (postgres) (push) Successful in 43m23s
Foundation / checks (tsan) (push) Successful in 11m39s
Foundation / checks (client) (push) Successful in 17m3s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 3m8s
Foundation / image (push) Successful in 3m25s
Foundation / checks (checks) (push) Successful in 45m19s
Foundation / checks (deploy) (push) Successful in 3m45s
Foundation / checks (ecs) (push) Successful in 2m16s
Foundation / checks (network) (push) Successful in 19m17s
Foundation / checks (postgres) (push) Successful in 43m23s
Foundation / checks (tsan) (push) Successful in 11m39s
Foundation / checks (client) (push) Successful in 17m3s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 3m8s
Foundation / image (push) Successful in 3m25s
The microscope view orients each cell along its last movement of at least 20 um, with the flagella trailing, easing into turns. The heading is projected with the current camera, so panning never turns a cell; a cell that has not moved keeps its seeded orientation. A left click outside the evolution window closes it (the offer stays; E or the callout reopens it), except on the frame it opens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -467,7 +467,8 @@ int main(int argc, char** argv) try {
|
||||
bool auth_connect = false; // Connect when the requested grant arrives.
|
||||
auto grant_requested = std::chrono::steady_clock::time_point{};
|
||||
int drawn_organisms = -1;
|
||||
evo::client_app::CellularScene scene; // Rebuilt each frame in cellular play.
|
||||
evo::client_app::CellularScene scene; // Rebuilt each frame in cellular play.
|
||||
evo::client_app::CellHeadings headings; // Where each drawn cell last moved.
|
||||
bool scene_active = false;
|
||||
evo::client_app::PanelActions actions;
|
||||
(*app)->set_overlay([&] {
|
||||
@@ -783,8 +784,20 @@ int main(int argc, char** argv) try {
|
||||
c.stale =
|
||||
org_layer && org_layer->freshness() != evo::client::Freshness::current;
|
||||
c.seed = cell.id;
|
||||
// The organism projection's world position (organism_bounds).
|
||||
constexpr auto pitch = static_cast<double>(evo::world::cell_pitch_mm);
|
||||
const evo::client::WorldPoint at{
|
||||
static_cast<double>(cell.voxel.x) * pitch +
|
||||
static_cast<double>(cell.x.value) / 1000,
|
||||
static_cast<double>(cell.voxel.y) * pitch +
|
||||
static_cast<double>(cell.y.value) / 1000};
|
||||
if (const auto heading = headings.update(cell.id, at, *camera)) {
|
||||
c.facing = true;
|
||||
c.heading = *heading;
|
||||
}
|
||||
scene.cells.push_back(c);
|
||||
}
|
||||
headings.end_frame();
|
||||
drawn_organisms = static_cast<int>(scene.cells.size());
|
||||
scene_active = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user