GodotVR / godot-xr-template

Godot XR Template project containing needed plugins, XR Tools and a very simple demo game
MIT License
130 stars 15 forks source link

Add scatter helper script #1

Closed BastiaanOlij closed 1 year ago

BastiaanOlij commented 1 year ago

This adds a simple scatter script and applies it to the test level:

image

Could maybe use a proper mesh for the rocks as they are just boxes atm.

Internally this uses a multimesh so for low poly objects you can easily place tens of thousands of instances without breaking a sweat. It places these objects within a given area at random locations. These are determined at startup, we're not saving the locations, which may lead to a bit of a slowdown at startup if you go overboard with the numbers.

But I wanted to keep things simple.

For something more advanced I highly recommend https://github.com/HungryProton/scatter