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 arranstobbs · Nov 22, 2011 at 08:29 PM · javascriptmeshplaneheightexample

Simple mesh height alteration.

I'm newish to Unity and still learning,I am looking for a simple piece of code that takes a certain position in my plane and increases my height by say one. I have been searching and haven't been able to find a simple example that I can follow to extent on. I would prefer the example to be in JavaScript. I have some code that does this to the terrain which I am following alright, but it accesses and changes the terrainData for different positions and I would like to change that for a mesh.

Comment
Add comment · Show 3
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 Matteaton83 · Nov 22, 2011 at 09:42 PM 0
Share

The idea is to move a mesh +1 units in the y axis? Or to move a single vector in a plane mesh +1 units in the y axis?

avatar image Bunny83 · Nov 22, 2011 at 10:04 PM 0
Share

@arranstobbs: I've converted your "Answer" into a comment. Please, don't use the answer function for comments. You can edit your question if you think you have to add information or use comments.

mat$$anonymous$$ton83 didn't post an answer because he's not sure what you want to do so he posted a comment to clarify your question.

avatar image arranstobbs · Nov 22, 2011 at 10:11 PM 0
Share

To move a single vector from plane mesh +1 in the y axis?

I have been looking into perlin noise and and want to manipulate the height. It's someone else's code for the terrain but I'm using to help me learn and want to use it on a mesh ins$$anonymous$$d.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Julien-Lynge · Nov 22, 2011 at 10:28 PM

You can download a whole bunch of procedural examples from

http://unity3d.com/support/resources/example-projects/procedural-examples.html

What you want to do is called procedural mesh extrusion, and there are multiple example scenes there with scripts that do what you want (I think they're even in Javascript).

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Changing materials of a plane on keydown. 1 Answer

Is Mesh Collider possible on an animated plane ? 0 Answers

How does "DontDestroyOnLoad" work? 4 Answers

How to add accelerometer controls to this script? 0 Answers

Material behaving weirdly! [Pics inside] 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