private void UpdateInterno(TGC.Core.Camara.TgcCamera Camara, TgcD3dInput Input, float ElapsedTime) { //ElapsedTime = 0.01f; CoordenadaEsferica anguloNave = new CoordenadaEsferica(xwing.GetCoordenadaEsferica().acimutal, xwing.GetCoordenadaEsferica().polar + DESVIO_ANGULO_POLAR); CalcularDeltaAcimutal(ElapsedTime, anguloNave); CalcularDeltaPolar(ElapsedTime, anguloNave); RueditaMouse(Input); cameraPosition = CommonHelper.SumarVectores(xwing.GetPosition(), GetDistancePoint()); lookAtCamera = xwing.GetPosition(); Camara.SetCamera(cameraPosition, lookAtCamera); }
public void Update(TGC.Core.Camara.TgcCamera Camara, TgcD3dInput Input, float ElapsedTime) { UpdateInterno(Camara, Input, ElapsedTime); }