Project

General

Profile

Previous Up Next

M3createParticle
This function creates an object of type HPart3d which is a new type for the 3D engine. This object contains the parameters which define a type of particle.

HPart3d M3createParticle (
S3d _session_
H3d _topo_
I _mask_
F _life_
F _rate_
F _weight_
F _size_
F _spin_
F _polarity_
)
Parameters

_session_
3D Session
_topo_
Represents the topology used for the rendering of each particle of this type.
_mask_
Allows to activate or not the flags defining this type of particle :
PCL_BILLBOARD : the particles are always facing the camera.
PCL_RAINBOW : the color of the particles is randomly attributed based on the table of colors and the color does not change until the particles die.
default : both flags desactivated
_life_
Maximum lifespan of a particle
default : 10000
_rate_
Number of particles emitted every 100 frames
default : 10000
_weight_
Mass of the particle
default : 0
_size_
Particle size
default : 100
_spin_
Rotation of the particle on itself
default : 0
_polarity_
Polarity of the particle, useful with certain effects
default : 0
Return value

HPart3d object corresponding to the creation parameters.
Remark

To the exclusion of the session and the topology, all the arguments can be set to nil. Default values will then be attributed.
See Also

M3setParticle and M3getParticle