//float time; //float lerpValue; //float speed = 2f; //Touch touch; void Start() { cam = Camera.main; ttScript = terrainTester.GetComponent <SurfaceCollider>(); fpsCDB = FilePanelButton.GetComponent <FilePanel_SelectCDB>(); pinScript = PinToggle.GetComponent <AddPin>(); lineScript = lineButton.GetComponent <LineButton>(); polyScript = polyButton.GetComponent <PolygonButton>(); //linePoints = new List<Vector3>(); //polyPoints = new List<Vector3>(); dots = new List <GameObject>(); pinFeatures = new List <Feature>(); lineFeatures = new List <Feature>(); arealFeatures = new List <Feature>(); toggle = look.GetComponent <Toggle>(); }
void Collide(ParticleGPU a, SurfaceCollider s) { Vector3 energyA = (1 / 2) * a.mass * -a.velocity; a.velocity = -a.velocity * 10; }