Quantcast
Channel: Questions in topic: "measure"
Viewing all articles
Browse latest Browse all 91

X/Y/Z distance

$
0
0
Hi Guys n Girls, I'm making a measurement tool n I had a couple of questions, 1. has anyone got any ideas on how I could get the X/Y/Z measurements in a similar way? 2. is their a simple way to connect the 2 "dist" objects with a line render?? Code: public class Measure : MonoBehaviour { public GameObject Measure1; public GameObject Measure2; public Text label; public float Distance_; //public float Distance_x; //public float Distance_y; //public float Distance_z; // Use this for initialization void Start () { } // Update is called once per frame void Update () { Distance_ = Vector3.Distance (Measure1.transform.position, Measure2.transform.position); label.text = Distance_.ToString ("F2"); } }

Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>