Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bbeierle12 avatar

Terrain Integration

  • 58 installs
  • 8 repo stars
  • Updated August 4, 2026
  • bbeierle12/skill-mcp-claude

terrain-integration is a Claude skill that adds slope handling, foundation anchoring, and auto-leveling for building placement on terrain in Three.js games.

About

This skill adds terrain interaction to Three.js building games, covering slope analysis, foundation anchoring in the Valheim pattern, terrain modification, auto-leveling, and pillar generation. A developer uses it when implementing where and how structures attach to uneven ground, and it integrates with the structural-physics skill for stability.

  • Terrain interaction systems for Three.js building games
  • Slope handling, foundation anchoring, and auto-leveling
  • Integrates with structural-physics for ground-based stability

Terrain Integration by the numbers

  • 58 all-time installs (skills.sh)
  • Ranked #147 of 247 Game Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

terrain-integration capabilities & compatibility

Capabilities
structural physics
Pricing
Free
From the docs

What terrain-integration says it does

Terrain interaction systems for Three.js building games.
SKILL.md
Foundation placement, slope handling, and terrain modification for building systems.
SKILL.md
Integrates with structural-physics for ground-based stability.
SKILL.md
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill terrain-integration

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs58
repo stars8
Last updatedAugust 4, 2026
Repositorybbeierle12/skill-mcp-claude

What it does

Add slope handling, foundation anchoring, and auto-leveling for structures on terrain in Three.js building games.

Who is it for?

Placing foundations on uneven terrain with slope analysis and auto-leveling in Three.js.

Skip if: Non-terrain physics or 2D games.

When should I use this skill?

Implementing slope handling, foundation anchoring, terrain modification, or pillar generation.

What you get

Foundations place correctly on sloped terrain with auto-leveling and support pillars.

  • terrain analyzer
  • foundation placer with auto-leveling

By the numbers

  • 3 foundation modes (valheim, rust, ark)

Files

SKILL.mdMarkdownGitHub ↗

Terrain Integration

Foundation placement, slope handling, and terrain modification for building systems.

Quick Start

import { TerrainAnalyzer } from './scripts/terrain-analyzer.js';
import { FoundationPlacer } from './scripts/foundation-placer.js';

// Analyze terrain at build location
const analyzer = new TerrainAnalyzer(terrainMesh);
const slopeData = analyzer.analyzeSlope(position, { radius: 4 });
// slopeData: { angle: 15, normal: Vector3, canBuild: true }

// Place foundation with auto-leveling
const placer = new FoundationPlacer({ 
  mode: 'valheim', // or 'rust', 'ark'
  maxSlope: 30,
  autoLevel: true 
});
const result = placer.place(foundationPiece, position, analyzer);
// result: { valid: true, height: 2.3, pillarsNeeded: 2 }

Reference

See references/terrain-integration-advanced.md for:

  • Slope analysis algorithms and thresholds
  • Foundation anchoring patterns (Valheim ground contact rule)
  • Auto-leveling strategies
  • Terrain modification networking
  • Pillar generation for uneven terrain

Scripts

  • scripts/terrain-analyzer.js - Slope detection, buildability checks, terrain sampling
  • scripts/foundation-placer.js - Foundation placement with Valheim/Rust/ARK modes
  • scripts/terrain-modifier.js - Flatten, raise, lower terrain operations
  • scripts/pillar-generator.js - Auto-generate support pillars for slopes

Foundation Modes

  • Valheim: Ground contact = 100% stability, foundations must touch terrain
  • Rust: Foundations snap to grid, terrain ignored after placement
  • ARK: Flexible placement with auto-pillars, moderate slope tolerance

Integration

Works with structural-physics for stability calculations. Grounded foundations feed into the support graph as root nodes with maximum stability.

// Integration example
const grounded = placer.place(foundation, pos, analyzer);
if (grounded.valid) {
  foundation.isGrounded = true;
  foundation.stability = 1.0; // Feed to structural-physics
  validator.addPiece(foundation);
}

Related skills

FAQ

What placement modes are supported?

Valheim, Rust, and Ark modes for foundation placement.

Does it work with stability?

It integrates with structural-physics for ground-based stability.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.