Class and shapes3D
in
Contributed Library Questions
•
2 months ago
Hi I have to use the class Tube in a my another class: This is my code:
- class Obstacle {
- float x,y,z,obHeight,obWidth,velY;
- boolean removeMe=false;
- Tube tubo;
- Obstacle(float _obHeight,float _obWidth) {
- obHeight=_obHeight;
- obWidth=_obWidth;
- x=random(-300,300);
- z=random(-300,300);
- velY=random(1,10);
- y=-yOffset-obHeight/2;
- tubo=new Tube(this,20,5);
- tubo.setSize(obWidth/2,obWidth/2,obWidth/2,obWidth/2,obHeight);
- }
- ...
- ...
- ...
- }
- new Tube(PApplet app, int nbrSlices,int nbrSegments);
How can I solve my problem??
Thank you fo your help! ;)
1