Documentos de Académico
Documentos de Profesional
Documentos de Cultura
En la siguiente imagen tenemos la representación del plano de la upiita donde podemos ver que
usamos como guía una imagen satelital del área de trabajo para ubicar de esta manera los lugares
exactos donde se ubicaran los pokemones con los que se estará trabajando
En la siguiente imgaen desde la parte de arriba podemos ver que ya se han colocado los
poquemones en los lugares ya señalados en las indicaciones correspondiente a los poquemones
que se colicitan.
Zamora Martinez Luis Gerardo RV 4MV13
En la siguiente imagen podemos ver el ejemplo de algunos de los pokuemones voladores que se
están utilizando en este caso son los voladores que tenemos en la esplanada de la asta venderá.
En la siguiente imagen podemos ver que tenemos ubicados los pokemones al ras del plano que
trazaos como guía de nuestro trabajo.
CODIGO EMPLEADO
using System.Collections; ///ZAMORA MARTINEZ LUIS
GERARDO
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PRINCIPAL20 : MonoBehaviour
{
int NT;
Touch T1, T2;
float dx, dy;
float dx1, dy1, dx2, dy2;
public GameObject CAMARA;
float ax, ay, az, h = 1.78f;
Quaternion Q0, Q1;
Vector2 P1i, P1f, P2i, P2f;
float D, Fv = 60f;
public Camera CAM;
//////// GPS/////////////////////////////
float t, Laf, Lof, Alf, Lai = 19.511445f, Loi = -99.126563f; //ZAMORA
MARTINEZ LUIS GERARDO
public Text T11, T22, T33;
float dLa, dLo, R = 6371000, L;
{
NT = Input.touchCount;
if (NT == 1)
{
T1 = Input.GetTouch(0);
dx = T1.deltaPosition.x;
dy = T1.deltaPosition.y;
ay += 0.001f * dx;
ax += 0.001f * dy;
Q0 = new Quaternion(0f, Mathf.Sin(ay / 2f), 0f, Mathf.Cos(ay / 2));
Q1 = new Quaternion(Mathf.Sin(ax / 2f), 0f, 0f, Mathf.Cos(ax / 2));
CAMARA.transform.rotation = Q0 * Q1;
Debug.Log(T1.deltaPosition);
//ZAMORA MARTINEZ LUIS GERAERDO
}
if (NT == 2)
{
T1 = Input.GetTouch(0);
T2 = Input.GetTouch(1);
P1f = T1.position;
P2f = T2.position;
P1i = P1f - T1.deltaPosition;
P2i = P2f - T2.deltaPosition;
D = (P1f - P2f).magnitude - (P1i - P2f).magnitude;
Fv -= 0.1f * D;
Fv = Mathf.Clamp(Fv, 4f, 100f);
CAM.fieldOfView = Fv;
Debug.Log(D);
dx1 = T1.deltaPosition.x;
dy1 = T1.deltaPosition.y;
dx2 = T2.deltaPosition.x;
dy2 = T2.deltaPosition.y;
if (Mathf.Abs(dy1) > Mathf.Abs(dx1) && Mathf.Abs(dy2) > Mathf.Abs(dx2))
{
h += 0.01f * (dy1 + dy2) / 2f;
}
CAMARA.transform.position = new Vector3(76.1499f, h, 91.95898f);
}
//GPS
t = Time.time;
if (t <= 3f)
{
Input.location.Start();
Debug.Log(t);
}
Lof = Input.location.lastData.longitude;
Laf = Input.location.lastData.latitude;
Alf = Input.location.lastData.altitude;
L = Mathf.Sqrt((dLa * dLa) + (dLo * dLo));
Zamora Martinez Luis Gerardo RV 4MV13