[Papervision3D] ParticleField and ParticleMaterials error?
NuttyMonk
nuttymonk at gmail.com
Tue Aug 19 03:49:01 PDT 2008
I'm trying to use the ParticleField and ParticleMaterials. I can get it
working fine but the docs say that ParticleField should be able to take in 6
arguments when it is created ( for some reason it won't let me put in more
than 5 ) and that the ParticleMaterials method should be able to take in 3 (
it won't let me put in more than 2 ).
I wan't to adjust the size of the particles but i can't modify that
parameter and it won't let me modify the shape of the particles either when
i call the ParticleMaterials method.
Maybe i'm just being a noob, but is there an error with the classes or an i
doing something wrong?
Here is the code i'm trying to use...
var partMaterial:ParticleMaterial = new ParticleMaterial(0xFF0000, 1, 1);
var myParticles:ParticleField = new ParticleField(partMaterial, 1, 500,
5000, 5000, 5000);
... If i remove the last argument on the ParticleMaterial it works fine but
the particles are squares, i want circles. If i remove the size of 1 on the
ParticleField method it works fine but i can't adjust the size. It also
works with the default settings if i remove everything but the first
argument from both.
How does flash know how the number of arguments that a class can receive?
Is it based on the private vars declared at the start of the class or the
first function in the class which has the same name as the class?
Any help would be appreciated as i've only moved over to AS3 recently and
only just started working with PV3D and classes.
Cheers
--
View this message in context: http://www.nabble.com/ParticleField-and-ParticleMaterials-error--tp19048036p19048036.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list