Search Unity

How to use Vector3 in displaying Distance Inputs

Discussion in 'Scripting' started by Gonzotron, Mar 24, 2013.

  1. Gonzotron

    Gonzotron

    Joined:
    Mar 24, 2013
    Posts:
    1
    Hi all, I'm currently wondering how to solve this problem I've been given. I was instructed to write a code where an object takes 6 distance inputs and shows those numbers based on their proximity (how close they are), so I'm using Vector3 but I barely have any idea how to use it and how it also works but I get the idea of this code.

    Extra Info: No matter how much I enter 6 entries, it prints them out on how close they are.

    Thanks everyone! Have a pleasant coding :)
     
  2. Glockenbeat

    Glockenbeat

    Joined:
    Apr 24, 2012
    Posts:
    669