Spotlight Sale: Save 50% on select products now through July 15.

BuildingGenerator

Stoner Games - Code Plugins - Jun 29, 2024
1
5 out of 5 stars(1 rating)
  • 100%
  • 0%
  • 0%
  • 0%
  • 0%

generates a town with various building shapes and types. This implementation includes necessary validation, collision checking, and terrain adjustment to ensure buildings are correctly spawned without overlapping and appropriately grounded.

  • Supported Platforms
  • Supported Engine Versions
    5.3 - 5.4
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

Building Type and Shape Configuration:

  • Supports multiple building types: Residential, Commercial, and Industrial.
  • Allows generation of buildings in different shapes: Circle, Rectangle, Triangle, and Hexagon.

Flexible Building Parameters:

  • Customize each building with a variety of static meshes.
  • Define minimum distances between buildings to avoid overcrowding.
  • Enable random rotation for buildings to create a more organic layout.
  • Specify height variations for more dynamic building appearances.

Randomized Town Generation:

  • Generates a random number of buildings within a specified range.
  • Randomly selects building types and shapes based on provided configurations.
  • Places buildings within a defined town radius, ensuring even distribution for shapes like circles and triangles.

Terrain and Collision Handling:

  • Adjusts spawn locations to conform to the landscape height.
  • Ensures buildings are not obstructed by other objects in the world.
  • Validates locations to maintain minimum distance between buildings.


Technical Details

Features: (Building Type and Shape Configuration)

  •  Configurable Building Types and Shapes: Choose from multiple building types and layout shapes for versatile town generation.
  • Customizable Parameters: Specify building meshes, minimum distances between buildings, random rotations, and height variations.
  • Randomized Town Generation: Generate a random number of buildings within specified limits, ensuring varied and organic layouts.
  • Terrain and Collision Handling: Adjusts spawn locations to the landscape height, ensuring buildings are grounded and not overlapping.



  • GenerateTown: Main function to generate the town. Parameters include the world context actor, town center, radius, building count range, and an array of building parameters.
  • GenerateRandomPointInCircle/Rectangle/Triangle/Hexagon: Helper functions to generate random points within specified shapes.


Number of Blueprints:3

Number of C++ Classes:3

Network Replicated: (Yes)

Supported Development Platforms: (win64)

Supported Target Build Platforms: (win64)

Documentation: Link

Discord: Here

Important/Additional Notes: