Improve physical geometry, fluid solvers, audio, and profiling

This commit is contained in:
max
2026-10-30 18:57:56 +01:00
parent bf8621ad39
commit eb2b6366c2
130 changed files with 14649 additions and 862 deletions

View File

@@ -7,10 +7,11 @@ struct ScenarioSnapshot;
// Fractions refer to simulated pipe length; positions are world metres.
// Both the pipe mesh and its acoustic mouths use these same routes.
struct PipeRoute {
std::array<Vec3, 5> points{};
std::array<float, 5> fractions{};
std::array<Vec3, 64> points{};
std::array<float, 64> fractions{};
unsigned count{};
};
std::array<PipeRoute, 32> scenario_pipe_routes(const ScenarioSnapshot& state);
bool scenario_pipe_is_exhaust(const ScenarioSnapshot& state, std::size_t pipe_index);
std::array<Vec3, 3> scenario_sound_sources(const ScenarioSnapshot& state);
}