Is it possible?
I have a nince model with a machinegun on his hand. I made a tree that has a capsule collider and a nice little script that “falls” a tree in random direction if it takes a 4 hits from a gun. I made a prefab from that tree. And I can even paint a world full of them in the editor. And my bullets hit for them. But the script won’t activate.
since Unity doesn’t seem to support this functionality, is it possible to somehow code a custom painter in the editor that can create some hundreds of trees, or any other methods (colormap or something like that).
I just need some easy way to add those trees in the terrain without using Ctrl+D too much.
Did you ever find a solution for this?
I’m interested in using color maps in Unity to create a terrain based on topograpic data (the color map).
Thanks
I would check out tom’s terrain tools: http://www.lemuria.org/projects/wiki/TerrainTools
He has a great object placement script that is really easy to use… you would just make a photoshop document the same dimensions (in pixels) as your terrain resolution (for instance, 513x513 or 1025x1025), and paint in black what areas of the map you want to randomly place trees, then you import it and use it with the script, and you can set things like how many objects, the density of the objects, and so on, and it will randomly place them on the terrain in those areas you painted black, based on the parameters you selected.
I think what hes really asking for is the ability to paint gameobjects onto his terrain.
Thank you both for a quick reply.
Tom’s terrain tools looks very promising, I’m definately going to check it out.
Thanks!!