{"repo":"etodd/godot-scattershot","free":true,"listed":false,"github":"https://github.com/etodd/godot-scattershot","clone":"git clone https://github.com/etodd/godot-scattershot.git","description":"A Godot 4 addon to randomly distribute meshes and decals in a scene in realtime.","language":"GDScript","stars":116,"topics":["addon","godot","graphics","rendering"],"license":"MIT","category":"game-templates","readme_excerpt":"ScatterShot A Godot 4 addon to randomly distribute meshes and decals in a scene in realtime. An example of how fast it can redistribute instances: https://github.com/user-attachments/assets/9cfe3d10-c0c6-4f34-a3b3-a19b321b39bd Usage Create a ScatterShotZone node and assign it a ScatterShotPattern containing one or more ScatterShotLayer objects. Each layer distributes instances independent of the other layers. Each layer contains one or more \"collections\". A collection consists of either a MeshLibrary or a list of decal textures to distribute within the zone. If the MeshLibrary contains collision shapes, ScatterShot spawns a static physics body for each instance. Once you're happy with the pattern, you can create other ScatterShotZone instances and assign them the same pattern. To alter the density of instances in a certain area within a ScatterShotZone , create a ScatterShotModulator . Performance considerations There are two main performance considerations: avoiding framerate stutters, and maintaining a high framerate. Avoiding stutters ScatterShot avoids framerate stutters by creating and removing instances in \"chunks\", rather than all at once. ScatterShot creates one chunk per layer per frame. With the default chunk size of 16x16 grid cells, the maximum instances it can create in a single frame is 256, which is a good starting point to avoid stutters. Since instances are created over time, you may notice them popping in, especially when the scene first loads, or when the c","default_branch":null,"files":null,"tree":[],"storefront":"/r/etodd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/etodd/godot-scattershot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}