x


I can walk through trees?

I'm having trouble with my terrain trees! When ever I use the Terrain Tree Painter thing, it always makes them so I can walk through them. on the terrain collider script thing I have "Create Tree Colliders" on but STILL, I also have Generate Colliders on the tree I'm using (I'm using the Palm tree that comes with Unity, its in that occular-somethingorrather folder still), and its really annoying. I dont want to have to manually put each tree in the right place because I have a lot of trees!!!

more ▼

asked Mar 17 '10 at 09:12 AM

Hfyd2 gravatar image

Hfyd2
54 3 3 9

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

The "create tree colliders" option doesn't work quite like that. Instead, you may want to add a capsule-collider manually by following these steps:

  1. Find the tree you want in the Project panel.

  2. Drag it out as a prefab onto your map. (It doesn't matter where, just so you can see it)

  3. Select the tree, and in the Components menu, under Physics, add a capsule collider.(Losing the prefab is OK.)

  4. Set the radius of the collider to between 0.8 and 1. Make sure the height is about 20.

  5. Make a new prefab and call it Palm(Collider) and drag your new tree into it.

  6. Under terrain tree painter add the tree called Palm(Collider).

  7. Place a few trees, and you should be ready to go!

Press play, and the trees should now have colliders. If you want more trees and terrain textures, there is a great collection available for download here. Good luck!

more ▼

answered Mar 17 '10 at 12:52 PM

e.bonneville gravatar image

e.bonneville
5.7k 100 116 165

this is great thanks

Nov 19 '10 at 07:06 AM Jordan Miller 2

This techinic also works with MASS TREE PLACE

Feb 17 '11 at 07:20 PM JJAPrograms

Yes, because you're simply creating another tree prefab, which is used just like the originals.

Feb 18 '11 at 02:14 AM e.bonneville

Thanks for this, been looking for a solution for a while now :)

Oct 30 '11 at 09:09 PM Bwarkable

it doesn't work! I've done it multiple times and IT NEVER WORKS

Aug 30 '12 at 09:41 PM Sausagesauce
(comments are locked)
10|3000 characters needed characters left

The tree model should have a collider added, best is to add a cylinder-collider manually.

more ▼

answered Mar 17 '10 at 11:52 AM

Jaap Kreijkamp gravatar image

Jaap Kreijkamp
6.4k 20 26 70

(comments are locked)
10|3000 characters needed characters left

Adding a capsule collider is better then adding one that is a cylinder in most engines due to the fact that the end-caps on a capsule use the same radius as the radius of the body, so that the math is easy to compute collision by then engine. Adding a collider that is in the form of a cylinder makes the math much more intensive since the ends are flat, thus more expensive in processing time. If you are adding colliders to a large amount of assets in your scene then it is best to use capsules and not cylinders since the additive processor load is considerably greater for the cylinders and will tend to add to problems like lag.

more ▼

answered Dec 16 '10 at 02:28 AM

jhessler gravatar image

jhessler
76 1 1 1

but what about a long list of tree prefabs are creating in the hierarchy view as we are duplicating one tree...????

Feb 18 at 10:52 AM parmeshwar
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1478
x140
x8

asked: Mar 17 '10 at 09:12 AM

Seen: 11114 times

Last Updated: Apr 30 at 10:53 PM