diff --git a/content/Architecture/index.md b/content/Architecture/index.md index 4e2554d..a2d2b7f 100644 --- a/content/Architecture/index.md +++ b/content/Architecture/index.md @@ -3,7 +3,7 @@ title: Architecture description: Engineering teardowns and captures for Rust to Dust subsystems. --- -Six subsystem teardowns covering the live `RustToDust` engine stack (`Godot 4.7.2` Forward+ Vulkan, `Ymir.Box3D` rigid-body physics, `CultNet` multiplayer, and `HarfBuzz 15.2.0` `hb-gpu`), alongside two active systems still in build. +Six subsystem teardowns: four covering shipped systems on the live `RustToDust` engine stack (`Godot 4.7.2` Forward+ Vulkan, `Ymir.Box3D` rigid-body physics, `CultNet` multiplayer, and `HarfBuzz 15.2.0` `hb-gpu`), and two covering active systems still in build. ## Shipped Subsystems @@ -14,5 +14,5 @@ Six subsystem teardowns covering the live `RustToDust` engine stack (`Godot 4.7. ## Active Work in Progress & Planned Pipeline -5. **[Upright Mech Walkers (`Ymir` Box3D ABI 22 — Work in Progress)](upright-mech-walkers.md)** — Documents the active migration from virtual ground-reaction-force box balancing to upright angular-locked capsules and Zero-Moment Point pelvis kinematics. -6. **[Watertight CGA Destructible Sion City & Real Species Foliage (Planned / In Build)](watertight-cga-sion-and-foliage.md)** — Covers the upcoming offline shape-grammar pipeline converting `2,319` Sion buildings into closed destructible zones alongside Valais-accurate tree stands bent by blast wind. +5. **[Upright Mech Walkers (`Ymir` Box3D ABI 22 — Work in Progress)](upright-mech-walkers.md)** — Migrates bipedal and quadruped walkers from virtual ground-reaction-force box balancing to upright angular-locked capsules and Zero-Moment Point pelvis kinematics. +6. **[Watertight CGA Destructible Sion City & Real Species Foliage (Planned / In Build)](watertight-cga-sion-and-foliage.md)** — Turns `2,319` Sion buildings into closed, destructible shape-grammar zones and populates the valley with Valais-accurate tree stands bent by blast wind. diff --git a/content/Architecture/thermal-grid-ballistics-netcode.md b/content/Architecture/thermal-grid-ballistics-netcode.md index 81b7635..370203a 100644 --- a/content/Architecture/thermal-grid-ballistics-netcode.md +++ b/content/Architecture/thermal-grid-ballistics-netcode.md @@ -19,7 +19,7 @@ flowchart TD PERF --> EFF["Weapon Cooldown / Drive Thrust / Cooling Power"] ``` -Inside `ChassisGrid.StepHeat`, thermal simulation advances in substeps clamped to `subDt <= 0.02 s`. Each active cell exchanges heat with its active east and south neighbors using the mean conductivity of the pair, conserving energy across hardpoint boundaries. Only perimeter cells (`BorderCells[x, y]`) radiate heat according to $T^4$, while active radiators subtract `CoolingPower * Performance(T)` across their footprint cells. +Inside `ChassisGrid.StepHeat`, thermal simulation advances in substeps clamped to `subDt <= 0.02 s`. Each active cell exchanges heat symmetrically across its east and south edges using the pair's mean conductivity, visiting every four-neighbor boundary once per substep while conserving energy across hardpoint boundaries. Only perimeter cells (`BorderCells[x, y]`) radiate heat according to $T^4$, while active radiators subtract `CoolingPower * Performance(T)` across their footprint cells. Every mounted module evaluates `ModuleSpec.Performance(T)`, returning `1.0` across `[OptimalTemp - PlateauWidth/2, OptimalTemp + PlateauWidth/2]` and ramping linearly down to `0` at `MinTemp` and `MaxTemp`. Because cells initialize at `20°C` (`AmbientTemp`) while high-output weapons and supercharged engines enter full plateau efficiency around `30°C–40°C`, cold gear warms up slightly during initial fire before excess sustained heat pushes past the upper shoulder into thermal stall. @@ -31,9 +31,9 @@ A mounted weapon, engine, or radiator remains functional while at least one cell ## Multi-Stage `OrdnanceGraph` & `60 Hz` `Ymir.Box3D` Physics -`OrdnanceGraph` models hitscan beams, ballistic shells, rocket-boosted salvos, homing missiles, loitering laser drones, and stationary mines as directed trees (`OrdnanceNodeDef`). Nodes attach `WhileAlive` periodic pulse emitters and up to six trigger conditions (`Impact`, `Timeout`, `Altitude`, `Proximity`, `StageElapsed`, `Apex`) driving `Detonate`, `Split`, `Transition`, or `Fizzle` transitions—for example, a sabot carrier splitting into homing sub-munitions at apex or an airburst flak shell detonating on proximity. +`OrdnanceGraph` models hitscan beams, ballistic shells, rocket-boosted salvos, homing missiles, loitering laser drones, and stationary mines as directed trees (`OrdnanceNodeDef`). Nodes attach `WhileAlive` periodic pulse emitters and up to six trigger conditions (`Impact`, `Timeout`, `Altitude`, `Proximity`, `StageElapsed`, `Apex`) driving `Detonate`, `Split`, `Transition`, or `Fizzle` outcomes—for example, a sabot carrier splitting into homing sub-munitions at apex or an airburst flak shell detonating on proximity. -At load or weapon-generation time, `OrdnanceGraphValidator.ValidateAndFlatten` rejects cyclic graphs and non-finite fields, enforces a maximum tree depth of `4` and `<= 16` peak sub-spawns per shot, and flattens the tree into `<= 32` indexed nodes so `OrdnanceRuntime` steps projectiles in flat arrays with zero runtime recursion or heap allocation. Server `ArenaSession` owns the authoritative `60 Hz` `Ymir.Box3D` simulation (`Box3DSoaWorld`, capacity `1024`), calling `Box3DPhysicsTileSync.EnsureTilesAlongRay` to page in `192 m` terrain tiles along raycasts before `CastRayClosest`. +At load or weapon-generation time, `OrdnanceGraphValidator.ValidateAndFlatten` rejects cyclic graphs and non-finite fields, enforces a maximum tree depth of `4` and `<= 16` peak sub-spawns per shot, and flattens the tree into `<= 32` indexed nodes so `OrdnanceRuntime` steps projectiles in flat arrays with zero runtime recursion or heap allocation. Server `ArenaSession` owns the authoritative `60 Hz` `Ymir.Box3D` simulation (GameCult's custom native rigid-body physics library; `Box3DSoaWorld`, capacity `1024`), calling `Box3DPhysicsTileSync.EnsureTilesAlongRay` to page in `192 m` terrain tiles along raycasts before `CastRayClosest`. ## `CultNet` Replication & `3×3` Prediction Window @@ -46,7 +46,7 @@ flowchart LR SYNC["Box3DPhysicsTileSync 3x3 Window (576 m x 576 m)"] --> PRED ``` -`SnapshotCodec` splits replication across two `CultMesh` channels inside `CultNet`: +`SnapshotCodec` splits replication across two channels on `CultMesh` (GameCult's channel-framing and message-routing layer inside `CultNet`): - **`"latest"` (unreliable, latest-state-wins UDP):** Strictly capped at **`1,152 B`** on the wire (`42 B` `CultNetRudp` packet header plus `52 B` `CultMesh` frame header leaves **`1,058 B`** maximum payload per datagram). `EncodeCorePvs` packs quantized poses, velocities, health, heat, and visibility-filtered contender, walker, and spectator states inside that ceiling even at worst-case 12-contender density. - **`"schema"` (reliable ordered UDP):** Delivers `InitialMatchStateDto` (including ZLib-compressed `PersistentScars` from `ArenaScarLedger`), reliable loadout, drop, and broadcast `SimEvent`s, and `TerrainStampEvent`s streamed as peers enter a **`576 m` circular radius** around each terrain scar. diff --git a/content/Architecture/upright-mech-walkers.md b/content/Architecture/upright-mech-walkers.md index d60f56f..4b628b1 100644 --- a/content/Architecture/upright-mech-walkers.md +++ b/content/Architecture/upright-mech-walkers.md @@ -4,7 +4,7 @@ description: Active work in progress migrating bipedal and quadruped walkers fro --- > [!WARNING] Work in Progress -> In the current build, walkers run **Hybrid B** virtual ground-reaction-force (GRF) box balancing in `WalkerLocomotion.cs`. `Ymir.Box3D` ABI 22 already exports `LockAngularX/Y/Z`, `DisableContactRecycling` (preventing the solver from reusing stale contact manifolds across vertical steps), `CastCapsuleClosest`, and `SetBodyMotion`, while the `RustToDust` integration (`AddCapsule` bodies, `WalkerSurfaceProbe`, `PreStepWalker`/`PostStepWalker`, and `+5 B` pelvis/lean network sync) is currently in build and not yet merged. +> In the current build, walkers run **Hybrid B** virtual ground-reaction-force (GRF) box balancing in `WalkerLocomotion.cs`. `Ymir.Box3D` (GameCult's custom native rigid-body physics library) ABI 22 already exports `LockAngularX/Y/Z`, `DisableContactRecycling` (preventing the solver from reusing stale contact manifolds across vertical steps), `CastCapsuleClosest`, and `SetBodyMotion`, while the `RustToDust` integration (`AddCapsule` bodies, `WalkerSurfaceProbe`, `PreStepWalker`/`PostStepWalker`, and `+5 B` pelvis/lean network sync) is currently in build and not yet merged. Seven of the 15 chassis (five bipeds and two quadrupeds) walk on articulated legs solved with 2-bone and 3-bone inverse kinematics (`WalkerLocomotion`) and synchronized to `VehicleRigAnimator` and `WalkerFootstepTracker`. diff --git a/content/index.md b/content/index.md index da19db5..c174471 100644 --- a/content/index.md +++ b/content/index.md @@ -19,7 +19,7 @@ description: Salvage-grid vehicular and mech combat in a 3 km Swiss Alpine valle Every vehicle and mech is simulated as a physical 2D thermal grid: -- **Conductive heat and operating bands:** Firing weapons or pushing a supercharged engine heats the cells under that hardpoint, and heat conducts across neighboring cells while cooling through exposed hull edges and active radiators. Each weapon, engine, and radiator peaks across a warm operating plateau: cold idle engines and heavy guns run slightly below peak output until combat warms them up, while overheating drops efficiency to zero and stalls weapons or cuts thrust. +- **Conductive heat and operating bands:** Firing weapons or pushing a supercharged engine heats the cells under that hardpoint; heat then spreads into neighboring cells and cools through exposed hull edges and active radiators. Each weapon, engine, and radiator peaks across a warm operating plateau: cold idle engines and heavy guns run slightly below peak output until combat warms them up, and sustained fire past the upper threshold drops efficiency to zero, stalling weapons or cutting thrust. - **Localized armor and module stripping:** Incoming shots hit specific grid cells mapped from the impact point on the hull. Once a cell's armor strips to zero, overflow damage hits the core hull and any hardpoint whose supporting cells are all destroyed goes offline; on bipedal and quadruped walkers, leg armor loss slows movement and turning. - **Field salvage and multi-stage weapons:** Destroyed hulls and orbital supply drops scatter 9 human salvage modules, 6 Imperial Tourist parts, and procedurally rolled multi-stage weapons—from airburst flak and prism lances to MIRV sub-munition carriers and loitering laser drones. Pull alongside a crate or wreck to bolt salvaged gear straight into an open hardpoint or swap into an intact chassis mid-match.