Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to generate curved plane?

Discussion in 'Scripting' started by suctioncup, Oct 21, 2014.

  1. suctioncup

    suctioncup

    Joined:
    May 19, 2012
    Posts:
    273
    Hello,

    I am trying to generate a curved plane.



    Since I will be changing the number of vertices and the length of the plane, the divisions etc. etc, I would like to create this with a for loop.

    However, I don't understand how to go around doing this - how to structure this loop. How do I define which verts are on top and on the bottom? How do I number the tris?

    Thanks.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,937
  3. bo3bber

    bo3bber

    Joined:
    May 27, 2013
    Posts:
    4
    Late to the party, but thank you kindly for posting this suggestion. This is working very well for me as a way to generate my preferred plane. The code is terrific.