I’m new to Unity, and am currently working on my first project. I have made most of the game, but my trees aren’t solid. You can just walk straight through them. Please can someone help?
Add collider on them.
You have to add a capsule collider to your tree and fit it around the trunk of the tree. You then have to get that tree and overwrite the old prefab of that same tree or create a new one. This will lock the collider into the prefab and allow it to be used with the painted trees.
Common issue with the mass tree tool:
-Find the tree prefab in your project panel
-add one of it manually
-add a capsule collider to the tree object and place as you want it. You need to tweak the collider variables in the inspector
-Create a new prefab and give it name like TreeWithColliderThisTime
-Drag and drop the new tree into the prefab
-Get back to your terrain and select the place tree tool.
-Add a new tree to it.
-Find your new prefab
-Place trees
-Run the game and enjoy the bumping into the trees.