Function Questions Code
in
Contributed Library Questions
•
3 months ago
Hi
, I require
your help
to know that
I have
wrong in this
code because
I run
priate
runs
I
get the error
with
the
origin
function
.
someone who can assist me I would appreciate
someone who can assist me I would appreciate
hola, requiero de la ayuda de ustedes para saber que tengo mal en este codigo ya que cuado lo ejecuto no me corre, aparece el error con la funcion origin.
alguien que me pueda colaborar se lo agradeceria
import toxi.geom.*;
// Lo Declaro
ArrayList ballCollection;
void setup(){
size (600,600);
smooth();
// Lo Inicializo
ballCollection = new ArrayList();
for(int i = 0; i < 100; i++){
Vec3D origin = new Vec3D(random(width).random(200).0);
Ball myBall = new Ball(origin);
ballCollection.add(myBall);
}
}
void draw(){
background(0);
// Llamo la Funcion
for(int i = 0; i < ballCollection.size(); i++){
Ball mb = (Ball) ballCollection.get(i);
mb.run();
}
}
1