• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jjplay175 · Aug 24, 2014 at 05:31 AM · colliderterraintree-painting

Terrain tree painter doesn't work with mesh collider

Summery of what I did

  1. Exported my own tree from maya

  2. Put it into unity and assigned it a mesh collider Works

  3. Made it a prefab with mesh collider Works

  4. Made sure tree collider is enabled, used tree with paint No Collider

  5. Made a capsule collider and updated prefab Works

  6. Paint with it Works

Question

Is the mesh colliders inability to work with terrain trees intentional or a bug? I want the collider to be quite accurate so people can climb and slide down trees so is there any way to get the mesh colider to work at all with the terrain?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by ahgr123 · Aug 24, 2014 at 04:28 PM

you can place objects with terrainrand script. attach it to terrain and it will place object to your terrain randomly. For prefab select prefab you want to spread , for count select total number of all objects and then you can set range of random rotation.

 using UnityEngine;
 using System.Collections;
 
 [ExecuteInEditMode]
 public class TerrainRand : MonoBehaviour
 {
     public GameObject prefab;
     public int count = 1000;
     public float randomRotationX = 0;
     public float randomRotationY = 0;
     public float randomRotationZ = 0;    
 }
 
Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AngryBurritoCoder · Aug 24, 2014 at 06:17 PM 0
Share

problem is too many trees with these meshes and your in a lot of trouble with performance

avatar image ahgr123 · Aug 24, 2014 at 09:03 PM 0
Share

Actually they find out trees as objects are faster than trees placed within terrain systems... http://forum.unity3d.com/threads/using-tree-gameobjects-vs-unitys-built-in-system.183224/

avatar image AngryBurritoCoder · Aug 24, 2014 at 11:26 PM 0
Share

number1 : way back in 2006, since then unity moved on so much number2: by meshes i ment mesh colliders, because he wants them on every tree, that basically doubles everything

avatar image jjplay175 · Aug 25, 2014 at 04:46 PM 0
Share

$$anonymous$$y trees don't work off independent leafs and are in a cartoon style so the mesh isn't that complicated and the poly count is quite low

avatar image
0

Answer by AngryBurritoCoder · Aug 24, 2014 at 10:19 AM

You will need to place trees instead of using unity tree system

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jjplay175 · Aug 24, 2014 at 10:43 AM 0
Share

Isn't there any scripts that can mass place trees with working colliders? or any mods to get the terrain to work with it?

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Collision Colliders - Box or Mesh for Terrain 1 Answer

Randomly some prefab instances have Character controller misaligned 0 Answers

How to limit walkable map? 3 Answers

Terrain collision problem 1 Answer

Terrain collider displaced? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges