Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
Matteo Ridolfi
Matteo Ridolfi's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Class and shapes3D
[5 Replies]
26-Jul-2013 12:43 PM
Forum:
Contributed Library Questions
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);
}
...
...
...
}
But when I call:
new Tube(PApplet app, int nbrSlices,int nbrSegments);
I have an error "The constructor Tube(SchivaTutto.Obstalce,int,int) is undefined"
How can I solve my problem??
Thank you fo your help! ;)
«Prev
Next »
Moderate user : Matteo Ridolfi
Forum