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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Auto-Connected Objects

Discussion in 'Scripting' started by DrunkProgrammer, Oct 3, 2015.

  1. DrunkProgrammer

    DrunkProgrammer

    Joined:
    Mar 7, 2015
    Posts:
    12
    Hello unity community,
    I want to connect to points that are generated to random x and z position as shown to that picture http://s22.postimg.org/94twvnna9/Connection.png! After some time a point C is created to a random position, as well. How can I connect the A with the B and then connect the B with C? (The blue in the picture are unity cubes). Any idea?
    P.S. I am using C#
    Thanks for your time.
     
    Last edited: Oct 3, 2015
  2. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,887
    What do you mean "connect"? With a physics joint, or what?
     
  3. DrunkProgrammer

    DrunkProgrammer

    Joined:
    Mar 7, 2015
    Posts:
    12
    With some unity cubes that will be scaled "fill" the distance(gap) between the points creating a path!
     
    Last edited: Oct 4, 2015