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

create mesh on runtime from points

Discussion in 'Scripting' started by fahd, Aug 1, 2015.

  1. fahd

    fahd

    Joined:
    Aug 7, 2014
    Posts:
    31
    How can I create mesh on runtime from points.

    example:

    I want the user to add points to the screen and the application will automatic connect them together to create one mesh from these points on runtime.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
  3. fahd

    fahd

    Joined:
    Aug 7, 2014
    Posts:
    31
    I did but when it comes to 5 points or more things gets messy
     
  4. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    No, probably not. The math involved is most likely quite complex (have never done it myself). Here's a link I found to help get you started. Good luck.
     
  5. fahd

    fahd

    Joined:
    Aug 7, 2014
    Posts:
    31
    is creating a mesh is my only option or there is another way to do it