HungryProton / scatter

Godot engine addon to randomly fill an area with props or other scenes
MIT License
2k stars 91 forks source link

Terrain3d and collider mask #194

Open Bazouz660 opened 3 months ago

Bazouz660 commented 3 months ago

Hello, im trying to make the grass not clip through rocks and other colliders. Im using project on terrain3d to project the grass onto the terrain, same for the rocks. Is there a way i can make the grass not grow where the rocks or other colliders are ?

TokisanGames commented 3 months ago

You can put exclusionary areas into scatter. You'll probably need to do two different instances.

Or you can use Project On Colliders, with Terrain3D debug collision enabled, then filter out heights so it only grows at ground height and not on top of the rocks.

But if you want such manual control, use SimpleGrassTextured, or just wait a few more weeks until I'm done with the foliage instancer in Terrain3D. Surely you won't be finished with your game by then.