Structural validation and damage systems for Three.js building games. Use when implementing building stability (Fortnite/Rust/Valheim style), damage propagation, cascading collapse, or realistic physics simulation. Supports arcade, heuristic, and realistic physics modes.
Stability validation and damage systems for building mechanics.
import { HeuristicValidator } from "./scripts/heuristic-validator.js";
import { DamageSystem } from "./scripts/damage-propagation.js";
// Rust/Valheim style stability
const validator = new HeuristicValidator({ mode: "heuristic" });
validator.addPiece(piece);
const result = validator.validatePlacement(newPiece);
// result: { valid: true, stability: 0.85, supports: [...] }
// Damage and collapse
const damage = new DamageSystem(validator);
damage.applyDamage(piece, 50, "physical");
damage.applyExplosiveDamage(position, 100, 10); // radius damage
See references/structural-physics-advanced.md for:
scripts/heuristic-validator.js - Fast validation (Fortnite/Rust/Valheim modes)scripts/stability-optimizer.js - Caching and batch updates for large structuresscripts/damage-propagation.js - Damage states, fire spread, cascading collapsescripts/physics-engine-lite.js - Optional realistic stress/strain simulationSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer