public class Traverse extends Interpolation{ Cylindre tr; float large,haut; public Traverse(float large,float haut,float angle,float dint){ super( new Vecteur(random(-2000,2000),random(-10000,-7000),random(4500,6000)), new Vecteur(dint*cos(angle),-haut,dint*sin(angle)), new Quat(cos(PI/4),sin(PI/4),0,0)); this.large=large; this.haut=haut; tr=new Cylindre(large,haut); } void dessiner(){ tr.dessinerZ(); } void actualiser(){ super.actualiser(); pushMatrix(); translate(pt.x,pt.y,pt.z); appliqueQuat(Quat.slerp(q0,qb,super.temps)); //afficherRepere(1000);fill(255,0,0); dessiner(); popMatrix(); } }