public void RenderizarPrimeraPersona(SuvirvalCraft contexto) { mesh.updateAnimation(contexto.ElapsedTime); mesh.Transform = Matrix.Scaling(mesh.Scale) * Matrix.RotationYawPitchRoll(mesh.Rotation.Y, mesh.Rotation.X, mesh.Rotation.Z) * Matrix.Translation(mesh.Position); //Renderizar attachments foreach (var attach in mesh.Attachments) { attach.Mesh.Transform = attach.Offset * attach.Bone.MatFinal * mesh.Transform; //attach.Mesh.render(); } //TODO esto es muy feo if (TieneAntorchaSeleccionada()) { //Si esta seleccionada la antorcha la renderizamos antorcha.renderizar(contexto); } else { instrumentoManoDerecha.renderizar(contexto); } }
public void RenderizarTerceraPersona(SuvirvalCraft contexto) { if (efecto != null) { efecto.ActualizarRenderizar(contexto, contexto.ElapsedTime); } else { mesh.animateAndRender(contexto.ElapsedTime); } //TODO esto es muy feo if (TieneAntorchaSeleccionada()) { //Si esta seleccionada la antorcha la renderizamos antorcha.renderizar(contexto); } else { instrumentoManoDerecha.renderizar(contexto); } }
public ControladorEntradas(SuvirvalCraft contexto) { comandosSeleccionados = new List <Comando>(); d3dInput = contexto.Input; }