void Start() { Vector3Debugger.AddVector(ejer1, Color.red, "primero"); ejer1 = new Vector3(5, 0, 0); Vector3Debugger.AddVectorsSecuence(ejer2, false, Color.blue, "segundo"); ejer2.Add(new Vector3(5, 0, 0)); ejer2.Add(new Vector3(5, 5, 0)); ejer2.Add(new Vector3(10, 5, 0)); Vector3Debugger.AddVectorsSecuence(ejer3, false, Color.yellow, "tercero"); ejer3.Add(new Vector3(5, 0, 0)); ejer3.Add(new Vector3(5, 5, 0)); ejer3.Add(new Vector3(10, 5, 0)); ejer3.Add(new Vector3(10, 10, 0)); // ---------------------------- // Testeos propios: //Vec3 position = new Vec3(obj2.position); //var rotation = MyQuatern.LookRotation(position, Vec3.Up); // //obj1.rotation = new Quaternion(rotation.x, rotation.y, rotation.z, rotation.w); //var myQuat = MyQuatern.Euler(12, 5, -1); //var unityQuat = Quaternion.Euler(12, 5, -1); // //Debug.Log("My: " + myQuat.eulerAngles); //Debug.Log("Unity: " + unityQuat.eulerAngles.ToString("F7")); }
private void Start() { SetExcercise(0); Vector3Debugger.AddVectorsSecuence(secuencePointList, true, Color.red, "Secuence"); Vector3Debugger.EnableEditorView(); }
void Start() { List <Vector3> vectors = new List <Vector3>(); vectors.Add(new Vec3(10.0f, 0.0f, 0.0f)); vectors.Add(new Vec3(10.0f, 10.0f, 0.0f)); vectors.Add(new Vec3(20.0f, 10.0f, 0.0f)); vectors.Add(new Vec3(20.0f, 20.0f, 0.0f)); Vector3Debugger.AddVectorsSecuence(vectors, false, Color.red, "secuencia"); Vector3Debugger.EnableEditorView("secuencia"); Vector3Debugger.AddVector(new Vector3(10, 10, 0), Color.blue, "elAzul"); Vector3Debugger.EnableEditorView("elAzul"); Vector3Debugger.AddVector(Vector3.down * 7, Color.green, "elVerde"); Vector3Debugger.EnableEditorView("elVerde"); }
void InitMainTest() { List <Vector3> vectors = new List <Vector3>(); vectors.Add(new Vec3(10.0f, 0.0f, 0.0f)); vectors.Add(new Vec3(10.0f, 10.0f, 0.0f)); vectors.Add(new Vec3(20.0f, 10.0f, 0.0f)); vectors.Add(new Vec3(20.0f, 20.0f, 0.0f)); Vector3Debugger.AddVectorsSecuence(vectors, false, Color.red, "secuencia"); Vector3Debugger.EnableEditorView("secuencia"); Vector3Debugger.AddVector(new Vector3(10, 10, 0), Color.blue, "Vector3 Blue"); Vector3Debugger.EnableEditorView("Vector3 Blue"); Vector3Debugger.AddVector(Vector3.down * 7, Color.green, "Vector3 Green"); Vector3Debugger.EnableEditorView("Vector3 Green"); }