18 #ifndef AGX_PARTICLE_EMITTER_H
19 #define AGX_PARTICLE_EMITTER_H
103 virtual
void emitBody(const
Vec3& position, const
Vec3& velocity,
Emitter::DistributionModel *model) override;
104 virtual
bool preEmit() override;
105 virtual
void postEmit() override;
114 bool m_isGranularSystem;
120 bool m_enableMoistureProperty = false;
121 agx::
Real m_defaultMoisture = 0;
159 virtual ~DistributionModel();
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
Spawns new bodys inside a given volume.
Main material class which acts as a holder of a Surface Material and a Bulk material.
Spawns new particles inside a given volume given to the Emitter.
void setDefaultMoisture(agx::Real defaultMoisture)
Set the default value for the moisture property of created particles.
void setEnableMoisture(bool enable)
Set if the emitter should set a moisture property for the created particles.
Event2< ParticleEmitter *, agxData::EntityRange > Event
agx::Real getDefaultMoisture() const
Return the default value of the moisture property for created particles.
void setLife(Real life)
Set the initial life-length of the particles.
agx::Material * getParticleMaterial()
Set the particle material.
agx::Real getParticleRadius() const
Set the particle radius.
bool getEnableMoisture() const
const agx::Material * getParticleMaterial() const
void setColor(const Vec4 &color)
Set the initial color for the spawned particles.
ParticleEmitter(ParticleSystem *target, Quantity quantity=QUANTITY_COUNT)
Create a particle emitter coupled with a particle system.
const Vec4 & getColor() const
DistributionModel(agx::Real particleRadius, agx::Material *particleMaterial, agx::Real probabilityWeight)
A basic particle system that contains all the storages and buffers required for basic operation and a...
A class holding 4 dimensional vectors and providing basic arithmetic.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void AGXPHYSICS_EXPORT init()
Initialize agx.