structural-physics
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.
How do I install this agent skill?
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill structural-physicsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a self-contained structural physics library for Three.js building games, implementing stability validation, damage propagation, and optimization techniques. No security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
7 files scanned · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Structural Physics
Stability validation and damage systems for building mechanics.
Quick Start
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
Reference
See references/structural-physics-advanced.md for:
- Physics mode comparison (arcade vs heuristic vs realistic)
- Material properties and decay rates
- Damage state thresholds
- Cascade mechanics
Scripts
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 simulation
Physics Modes
- Arcade (Fortnite): Connectivity only, instant collapse, best for combat
- Heuristic (Rust/Valheim): Stability %, predictable rules, best for survival
- Realistic: Full stress/strain, computationally expensive, best for engineering sims
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/bbeierle12/skill-mcp-claude/structural-physics">View structural-physics on skillZs</a>