Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Airplane()
- {
- glPushMatrix();
- rotacionDeBase();
- //body
- glPushMatrix();
- glRotatef(15,1.0,0.0,0.0);
- Llanta(3.0,25.0);
- glPopMatrix();
- // cabina
- glPushMatrix();
- glTranslatef(0.0,0.0,36.0);
- drawSphere(5.5,20,20);
- glPopMatrix();
- //planes 1
- glPushMatrix();
- glTranslatef(0.0,10.0,19.0);
- glRotatef(15,1.0,0.0,0.0);
- glScalef(25.0,0.5,5.0);
- drawBox(3.0);
- glPopMatrix();
- //planes 2
- glPushMatrix();
- glTranslatef(0.0,-13.0,17.0);
- glRotatef(15,1.0,0.0,0.0);
- glScalef(25.0,0.5,5.0);
- drawBox(3.0);
- glPopMatrix();
- // joins
- glPushMatrix();
- glTranslatef(30.0,10.0,17.0);
- glRotatef(90,1.0,0.0,0.0);
- Llanta(0.2,110.0);
- glPopMatrix();
- // joins
- glPushMatrix();
- glTranslatef(-30.0,10.0,17.0);
- glRotatef(90,1.0,0.0,0.0);
- Llanta(0.2,110.0);
- glPopMatrix();
- //helices
- //soporte
- glPushMatrix();
- drawSphere(3.0,20,20);
- glPopMatrix();
- //aspas
- glPushMatrix();
- glTranslatef(0.0,9.0,-0.2);
- glRotatef(15,1.0,0.0,0.0);
- glScalef(0.5,3.5,0.5);
- Llanta(1.0,0.5);
- glPopMatrix();
- //aspas
- glPushMatrix();
- glTranslatef(0.0,-10.5,-5.0);
- glRotatef(15,1.0,0.0,0.0);
- glScalef(0.5,3.5,0.5);
- Llanta(1.0,0.5);
- glPopMatrix();
- //cola
- glPushMatrix();
- glTranslatef(0.0,-18.5,69.0);
- drawSphere(8.99,20,20);
- glPopMatrix();
- //aletas traseras
- glPushMatrix();
- glTranslatef(0.0,-12.5,73.0);
- glRotatef(15,1.0,0.0,0.0);
- glScalef(0.5,3.5,10.5);
- Llanta(1.0,0.5);
- glPopMatrix();
- //Llantas
- //llanta1
- glPushMatrix();
- glTranslatef(7.0,-22.5,20.0);
- glRotatef(90,0.0,1.0,0.0);
- Llanta(2.0,1.0);
- glPopMatrix();
- //llanta2
- glPushMatrix();
- glTranslatef(-9.0,-22.5,20.0);
- glRotatef(90,0.0,1.0,0.0);
- Llanta(2.0,1.0);
- glPopMatrix();
- //llanta3
- glPushMatrix();
- glTranslatef(0.0,-25.5,50.0);
- glRotatef(90,0.0,1.0,0.0);
- Llanta(1.0,1.0);
- glPopMatrix();
- //soportes llantas
- // joins
- glPushMatrix();
- glTranslatef(4.0,-12.0,20.0);
- glRotatef(90,1.0,0.0,0.0);
- Llanta(0.2,50.0);
- glPopMatrix();
- // joins
- glPushMatrix();
- glTranslatef(-4.0,-12.0,20.0);
- glRotatef(90,1.0,0.0,0.0);
- Llanta(0.2,50.0);
- glPopMatrix();
- //join3
- glPushMatrix();
- glTranslatef(-8.0,-22.0,20.0);
- glRotatef(90,0.0,1.0,0.0);
- Llanta(0.2,80.0);
- glPopMatrix();
- glPopMatrix();
- }
Add Comment
Please, Sign In to add comment