Uploaded May 2026 | Updated September 2026, 2 weeks ago
CityGen is an Unreal Engine 5 plugin for building indie city-builder, RTS, and 4X games on top of infinite procedural worlds. It's built on WorldGen — inheriting its chunk streaming, biomes, hydraulic erosion, and foliage systems — and adds the city-builder layer on top: the tools the player uses to actively shape their world. Roads, building placement, and zone systems, all running in real time with no baked landscapes or pre-authored heightmaps.
Previous videos covered the road tool, bridges, and quicksave / quickload. This video adds the second core verb: dropping buildings. Multi-cell footprints, Cities-Skylines-style road-aligned grid snap, OBB-vs-OBB collision via the separating axis theorem, slope refusal on steep terrain, and a live ghost preview that goes green or red so the player never has to read an error message.
────────────────────────────────────────
🏢 CITYGEN — BUILDING PLACEMENT
────────────────────────────────────────
► Built on WorldGen — get WorldGen on FAB: fab.com/listings/e4e93fbe-9326-40b8-a043-a809f788306a
► WorldGen Project File: patreon.com/posts/159622488
► Patreon (early access + project files): patreon.com/cw/CodeLikeMe
────────────────────────────────────────
IN THIS VIDEO
────────────────────────────────────────
✔ Building data asset — mesh, footprint cells, ghost material
✔ B key — enter placement, ghost follows cursor
✔ Road-aligned grid snap — buildings rotate to face curved roads
✔ World-axis fallback grid — for placements far from any road
✔ OBB-vs-OBB SAT collision — buildings can't overlap each other
✔ Road overlap check — buildings can't sit on roads
✔ Slope cap — refused on steep terrain (MaxSlopeDegrees)
✔ Live ghost preview — green = valid, red = refused
✔ Registry — ACityGenBuildingNetwork tracks every placed OBB
────────────────────────────────────────
🎮 SUPPORT & COMMUNITY
────────────────────────────────────────
► Patreon: patreon.com/cw/CodeLikeMe
► Subscribe: youtube.com/codelikeme
────────────────────────────────────────
#UnrealEngine #UE5 #CityBuilder #GameDev #ProceduralGeneration #IndieDev #CitiesSkylinesStyle #OpenWorld #UnrealEngine5 #CityGen #WorldGen #ProceduralTerrain #BuildingPlacement #GridSnap #SATCollision
► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
patreon.com/codelikeme
CityGen is an Unreal Engine 5 plugin for building indie city-builder, RTS, and 4X games on top of infinite procedural worlds. It's built on WorldGen — inheriting its chunk streaming, biomes, hydraulic erosion, and foliage systems — and adds the city-builder layer on top: the tools the player uses to actively shape their world. Roads, building placement, and zone systems, all running in real time with no baked landscapes or pre-authored heightmaps.
Previous videos covered the road tool, bridges, and quicksave / quickload. This video adds the second core verb: dropping buildings. Multi-cell footprints, Cities-Skylines-style road-aligned grid snap, OBB-vs-OBB collision via the separating axis theorem, slope refusal on steep terrain, and a live ghost preview that goes green or red so the player never has to read an error message.
────────────────────────────────────────
🏢 CITYGEN — BUILDING PLACEMENT
────────────────────────────────────────
► Built on WorldGen — get WorldGen on FAB: fab.com/listings/e4e93fbe-9326-40b8-a043-a809f788306a
► WorldGen Project File: patreon.com/posts/159622488
► Patreon (early access + project files): patreon.com/cw/CodeLikeMe
────────────────────────────────────────
IN THIS VIDEO
────────────────────────────────────────
✔ Building data asset — mesh, footprint cells, ghost material
✔ B key — enter placement, ghost follows cursor
✔ Road-aligned grid snap — buildings rotate to face curved roads
✔ World-axis fallback grid — for placements far from any road
✔ OBB-vs-OBB SAT collision — buildings can't overlap each other
✔ Road overlap check — buildings can't sit on roads
✔ Slope cap — refused on steep terrain (MaxSlopeDegrees)
✔ Live ghost preview — green = valid, red = refused
✔ Registry — ACityGenBuildingNetwork tracks every placed OBB
────────────────────────────────────────
🎮 SUPPORT & COMMUNITY
────────────────────────────────────────
► Patreon: patreon.com/cw/CodeLikeMe
► Subscribe: youtube.com/codelikeme
────────────────────────────────────────
#UnrealEngine #UE5 #CityBuilder #GameDev #ProceduralGeneration #IndieDev #CitiesSkylinesStyle #OpenWorld #UnrealEngine5 #CityGen #WorldGen #ProceduralTerrain #BuildingPlacement #GridSnap #SATCollision
► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
patreon.com/codelikeme










