vchelaru/flatredball2/hex-grid
Claude Code and agent skill by vchelaru/flatredball2
- community
Checking that the SKILL.md file is still in the repository.
Axial hex grids and sparse hex collision in FlatRedBall2. Triggers: HexGrid, HexCoordinate, HexOrientation, HexShapes, pointy-top or flat-top cells.
Install
npx vskill@latest install vchelaru/flatredball2/hex-gridSKILL.md
Hex Grid
Use HexGrid for layout math and HexShapes for sparse static collision. See the collision-relationships, entities-and-factories, and shapes skills for the surrounding engine patterns.
Map
| File | Purpose | |
|---|---|---|
src/Math/HexCoordinate.cs | Axial (Q, R) identity, neighbors, and distance | |
src/Math/HexGrid.cs | Immutable pointy/flat layout and world-coordinate conversion | |
src/Collision/HexShapes.cs | Occupied cells, collision, and aggregate debug rendering |
Setup Pattern
grid.GetCellAt(worldPosition) returns a cell in the mathematical grid; check solids.ContainsCell(cell) separately when occupancy matters.
Landmines
Radiusis center-to-vertex distance, andOriginis the center of cell(0,0). World Y increases upward; negative axial coordinates are valid.HexGridis immutable layout math. RebuildHexShapeswhen radius, orientation, or origin changes.- Add
HexShapesonce as an aggregate renderable; its visibility affects drawing only, and occupied cells remain collidable while hidden. - Collision is discrete. High-speed tunneling and escape from arbitrary embedded positions are not guaranteed; unresolved queries terminate and still report contact.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingfrb-skills/hex-grid/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vchelaru/flatredball2/hex-grid)