Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 4illeen · Jul 19, 2011 at 01:30 AM · terraindigging

terrain alteration a.k.a. digging

I know digging digging is impossible in unity, although is there any possible form of in-game terrain alteration, for example lowering the terrain at certain point by certain amount, maybe with certain radius - just like using brushes in the terrain toolkit.

Also, about the true digging part, is there any way other than making millions of game objects stacked one on each other that disappear on mouse click? that would probably kill my pc, unless new objects would appear only after previous ones were destroyed. That would keep their number at the same level (which is bad anyways)

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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by testure · Jul 19, 2011 at 06:40 AM

If you don't mind dropping a little cash on it (it's pretty inexpensive, for what it does), then VoxelForm is a turnkey solution:

http://forum.unity3d.com/threads/94224-Introducing-Voxelform-voxel-terrain-%28Marching-Cubes%29-with-real-time-deformation.

Here's the demo: http://cyclopsframework.org/voxelform/

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
avatar image
0

Answer by SilverTabby · Jul 19, 2011 at 05:08 AM

  • Yes, modifying a terrain mesh, or any mesh at all, is possible in game. There is even an example provided by unity on the subject.

  • Yes, it is possible to create a minecraft clone in unity by creating/placing objects proceduraly using prefabs and Instantiate.

  • You can simply use a Raycast to find the gameobject in the center of the screen/at the mouse coordinates/on the other side of the gun/etc. and then work with and on that object.

  • It shouldn't be too hard to only make the blocks appear when an adjacent one is destroyed.

All of these things are possible. You just have to do the actual work yourself.

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 Eric5h5 · Jul 19, 2011 at 06:43 AM 0
Share

Unity terrains don't use meshes, they use heightmaps. ($$anonymous$$eshes for the terrain are generated dynamically at runtime, but you have no control over them, you only have control over the heightmap.) $$anonymous$$aking a $$anonymous$$inecraft clone by instantiating prefabs is a bad idea, since the performance would be terrible unless you had a very small area. There are a few topics on the Unity forums that discuss how to create $$anonymous$$inecraft clones by using procedural meshes.

avatar image
0

Answer by Simon Wittber · Feb 08, 2012 at 04:22 AM

Terrain Destruction is a simple cheap package which can dig holes at runtime.

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Tips to start underground digging 3D game 2 Answers

Make a simple tree 1 Answer

Terrain+Planet 1 Answer

Gaia world generator detail spawner spawns multiple of the same mesh on the same location. 0 Answers

Every game object is white when i put in a light? 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