terrain-integration

Coordinate terrain-aware foundation placement and pillar generation for building systems.

27|2|Updated Apr 18, 2025
One-click install
npx skills add https://github.com/tanepiper/teskooano --skill terrain-integration-tanepiper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terrain-integration
Source: https://github.com/tanepiper/teskooano/tree/main/.cursor/skills/terrain-integration
Command: npx skills add https://github.com/tanepiper/teskooano --skill terrain-integration-tanepiper

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Terrain integration enables building on uneven landscapes by analyzing terrain, placing foundations with slope-aware rules, and generating auto pillars for gaps, while integrating with physics for stability.

Core Features & Use Cases

  • Slope analysis for foundation placement using TerrainAnalyzer.
  • Foundation placement modes inspired by Valheim, Rust, and ARK, including auto-pillars.
  • Auto-leveling and terrain adaptation to ensure solid ground contact.
  • Pillar generation and integration with PillarGenerator for complex terrains.
  • Terrain modification hooks and retrieval integration with structural-physics for stability.

Quick Start

To start, import the core components, create a TerrainAnalyzer for your terrain mesh, and place a foundation with a chosen mode. For example: const analyzer = new TerrainAnalyzer(terrainMesh); const placer = new FoundationPlacer({ mode: "valheim" }); const result = placer.place(foundation, position, analyzer);

Frequently Asked Questions about terrain-integration

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

FAQPage Schema
How do I place building foundations on uneven three.js terrain?

Foundation placement on slopes uses terrain analysis to evaluate mesh gradients and apply auto-leveling, ensuring solid ground contact for building systems on uneven procedurally generated landscapes.

Can I automatically generate support pillars for foundations in game development?

Yes, automatic pillar generation detects foundation gaps over uneven terrain and creates supports to maintain structural stability, adapting to complex slopes and procedurally generated landscapes.

Does this terrain integration work with structural physics for stability calculations?

Terrain integration retrieves modification hooks and foundation data to calculate structural stability, ensuring building systems remain physically supported on uneven landscapes.

What is the best way to analyze terrain slope for foundation placement in three.js?

Terrain slope analysis evaluates mesh gradients and ground contact points on three.js terrain to determine auto-leveling requirements and pillar generation needs for stable foundation placement.

Do I need three.js to perform terrain-aware foundation placement and pillar generation?

Three.js is required as the core dependency, providing the mesh data needed to perform ground-contact checks, slope analysis, and procedural pillar generation for building systems.