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 grayFalcon · Oct 07, 2010 at 05:40 AM · terrainconcave

Making caves in the terrain - again, but this time with scripts

Hello everybody,

this is yet another question concerning caves in the terrain. I have found out so far that unity doesn't support this and I would need to hack around with creating a separate mesh for the cave, attaching it to the terrain, adding a shader to the entrance that stops the terrain from being rendered and add a trigger which disables collision detection to let objects actually pass through the hole.

Now, my question is: how do I do all of that from within a script? There are some (deep) holes/caves that I want to generate automatically.

So, for the collision detection: I would like to just create a trigger on the entrance to the hole, but how do I add a trigger to the terrain? I don't see any addTrigger or similar methods in Terrain, TerrainData or RigidBody. Same goes for adding the shader - I have found out that zou can pass one in the constructor to a RigidBody (so I guess I can do the same for a Terrain), but I haven't found out how to add one to the existing Terrain (and anyways, I would need more than just one)...

Are there any examples that would show something in that direction? Not neccessarily with holes or caves, just the techniques needed here.

Thanks a lot in advance!

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 1elfdragon1 · Feb 23, 2012 at 11:16 PM

you can also use the tutorial on http://www.smokymonkeys.com/kyrill/index.asp?direct=22

use google translate to translate it.

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 1elfdragon1 · May 10, 2012 at 06:43 PM 0
Share

here they explain how to use the script.

http://forum.unity3d.com/threads/77324-how-to-use-smokymonkeys-hole-in-terrain-script

avatar image
0

Answer by Venryx · May 13, 2013 at 08:38 PM

There's a plugin for this on the Asset Store: Terrain Hole System

Description: "This Unity extension lets you make holes in your terrain that characters and other objects can go through."

More information can be found on the forum thread.

Comment
Add comment · 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

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

1 Person is following this question.

avatar image

Related Questions

problem with cave interior 4 Answers

Make a simple tree 1 Answer

How To produce cracks on terrain and buildings with earthquake ? 0 Answers

"Terrain.activeTerrain" what does it do? 1 Answer

Bugs with Terrian. Unity 5.4.0f3 FIXED 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