mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Tree generation #1863

Open ProYoran opened 2 years ago

ProYoran commented 2 years ago

Hello, I want trees to spawn in places where there are forests. Is this possible? I'm new to Unity, so it would be nice for a detailed tutorial or explanation.

neoneper commented 2 years ago

I wanna know too. Any sugestion?

Markovicho commented 2 years ago

Take a look at the sample assets included in the sdk. SpawnInsideModifier is the buzzword or search for "SpawnInParkModifier"

If that does not match your needs you can even script your own modifier

brnkhy commented 2 years ago

as @Markovicho suggested, there's a script and it's even used in one of the demo scenes. randomization and spread isn't the best though and it might be difficult to use.