Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Terrain Tag OnControllerColliderHit not showing 0 Answers

first person controller help 1 Answer

Animated Object falls through elevated terrain 0 Answers

How to create a ground/terrain/floor that won't respond to gravity or objects falling on it? 1 Answer

Shadows popping in/out during runtime 0 Answers


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