structural-physics

Validate stability and propagate damage across connected building structures.

8|3|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/Bbeierle12/Skill-MCP-Claude --skill structural-physics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: structural-physics
Source: https://github.com/Bbeierle12/Skill-MCP-Claude/tree/main/skills/structural-physics
Command: npx skills add https://github.com/Bbeierle12/Skill-MCP-Claude --skill structural-physics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides stability validation and damage systems for building mechanics in 3D games. This Skill enables arcade, heuristic, and realistic modes to model how structures hold together and how they fail.

Core Features & Use Cases

  • Stability validation: Quick checks during placement and updates during gameplay.
  • Damage propagation: Cascading failure and state changes across connected pieces.
  • Modes & materials: Arcade, Heuristic, and Realistic modes with material presets.
  • Use Case: Implement a Fortnite/Rust/Valheim-style building system with predictable stability and dramatic, yet controlled, collapses.

Quick Start

Instantiate the validator and damage system from the provided scripts, add your building pieces, and hook them into your update loop to recalculate stability and trigger collapses when needed.

Frequently Asked Questions about structural-physics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement stability validation for building games in Three.js?

Stability validation for Three.js building games checks structural integrity by evaluating how pieces connect and support each other. Instantiate the validator from the provided scripts, add your building pieces, and call stability checks during placement and gameplay updates to determine if structures remain standing or collapse.

What's the difference between arcade, heuristic, and realistic stability modes?

Arcade mode uses quick connectivity checks for fast gameplay; heuristic mode applies stability percentages based on connection patterns; realistic mode simulates physics-based damage with cascading collapse. Choose arcade for speed, heuristic for balance, or realistic for dramatic, controlled failures in Fortnite/Rust/Valheim-style games.

Can I use this for damage propagation and cascading collapse?

Yes, the damage system handles damage propagation and cascading collapse across connected pieces. Define material resistance models, apply damage states and types, and the system automatically triggers cascading failures when structures exceed damage thresholds or lose critical support.

Do I need to set up material presets for different building pieces?

Material presets are built into the system for common building scenarios, but you can define custom material resistance models for your game's pieces. The damage module applies these models during stability recalculation to determine how pieces respond to damage and collapse.

How do I integrate stability and damage systems into my game loop?

Hook the validator and damage system into your update loop by calling stability recalculation after structure changes and damage events. The system returns state changes and collapse triggers that you feed back into your rendering and physics to animate failures and updates.