void Start() { if (showMainTest) { InitMainTest(); } a = new Vec3(A); b = new Vec3(B); //value = Vector3.Project(A, B).normalized; //value2 = Vec3.Project(a, b).normalized; Vector3Debugger.AddVector(Vector3.zero, a, Color.blue, "Test Blue"); Vector3Debugger.EnableEditorView("Test Blue"); Vector3Debugger.AddVector(Vector3.zero, b, Color.green, "Test Green"); Vector3Debugger.EnableEditorView("Test Green"); //Vector3Debugger.AddVector(Vector3.zero, value2, Color.red, "Test Red"); //Vector3Debugger.EnableEditorView("Test Red"); Debug.Log("1: " + value); Debug.Log("2: " + value2); }
private void Start() { SetExcercise(0); Vector3Debugger.AddVectorsSecuence(secuencePointList, true, Color.red, "Secuence"); Vector3Debugger.EnableEditorView(); }
void FixedUpdate() { switch (ejercicio) { case Funciones.Uno: Vector3Debugger.EnableEditorView("primero"); Vector3Debugger.DisableEditorView("segundo"); Vector3Debugger.DisableEditorView("tercero"); // --------------- MyQuatern miQuat1 = MyQuatern.Euler(0, valor, 0); ejer1 = (miQuat1 * new Vec3(ejer1)); // --------------- Vector3Debugger.UpdatePosition("primero", ejer1); break; case Funciones.Dos: Vector3Debugger.EnableEditorView("segundo"); Vector3Debugger.DisableEditorView("primero"); Vector3Debugger.DisableEditorView("tercero"); // --------------- MyQuatern miQuat2 = MyQuatern.Euler(0, valor, 0); ejer2[1] = (miQuat2 * new Vec3(ejer2[1])); ejer2[2] = (miQuat2 * new Vec3(ejer2[2])); ejer2[3] = (miQuat2 * new Vec3(ejer2[3])); // --------------- Vector3Debugger.UpdatePositionsSecuence("segundo", ejer2); break; case Funciones.Tres: Vector3Debugger.EnableEditorView("tercero"); Vector3Debugger.DisableEditorView("primero"); Vector3Debugger.DisableEditorView("segundo"); // --------------- MyQuatern miQuat3 = MyQuatern.Euler(valor * 1.5f, valor * 1.5f, 0); ejer3[1] = (miQuat3 * new Vec3(ejer3[1])); ejer3[3] = (MyQuatern.Inverse(miQuat3) * new Vec3(ejer3[3])); // --------------- Vector3Debugger.UpdatePositionsSecuence("tercero", ejer3); break; } }
void Start() { Vector3Debugger.AddVector(resultado, colorVec, "elResultado"); Vector3Debugger.EnableEditorView("elResultado"); Vector3Debugger.AddVector(ejerA, Color.black, "elNegro"); Vector3Debugger.EnableEditorView("elNegro"); Vector3Debugger.AddVector(ejerB, Color.white, "elBlanco"); Vector3Debugger.EnableEditorView("elBlanco"); timeLerp = 0; timeLerpUnclamp = 1; }
void Start() { FirstVector = new Vector3(10.0f, 10.0f, 10.0f); SecondVector = new Vector3(25.0f, 20.0f, 20.0f); first = new Vec3(FirstVector); second = new Vec3(SecondVector); Vector3Debugger.AddVector(FirstVector, Color.white, "First"); Vector3Debugger.AddVector(SecondVector, Color.black, "Second"); Vector3Debugger.AddVector(ThirdVector, Color.red, "Third"); Vector3Debugger.EnableEditorView(); }
void Start() { a = new Vec3(A); b = new Vec3(B); value = Vec3.Zero; Vector3Debugger.AddVector(a, Color.blue, "Blue"); Vector3Debugger.EnableEditorView("Blue"); Vector3Debugger.AddVector(a, Color.green, "Green"); Vector3Debugger.EnableEditorView("Green"); Vector3Debugger.AddVector(value, vectorColor, "value"); Vector3Debugger.EnableEditorView("value"); }
void Start() { White = origVec; Black = new Vector3(25.0f, 20.0f, 20.0f); Vector3Debugger.AddVector(White, Color.white, "Blanco"); Vector3Debugger.AddVector(Black, Color.black, "Negro"); Vector3Debugger.AddVector(Red, Color.red, "Rojo"); Vector3Debugger.AddVector(Red, Color.green, "Verde"); Vector3Debugger.TurnOffVector("Blanco"); Vector3Debugger.TurnOffVector("Negro"); Vector3Debugger.TurnOffVector("Rojo"); Vector3Debugger.TurnOffVector("Verde"); 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"); }