18#ifndef AGX_PARTICLE_EMITTER_H
19#define AGX_PARTICLE_EMITTER_H
103 virtual
void emitBody(const
Vec3& position,
104 const
Quat& rotation,
105 const
Vec3& velocity,
106 Emitter::DistributionModel *model) override;
107 virtual
bool preEmit() override;
108 virtual
void postEmit() override;
117 bool m_isGranularSystem;
123 bool m_enableMoistureProperty = false;
124 agx::
Real m_defaultMoisture = 0;
162 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.
An event with two arguments.
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.
const agx::Material * getParticleMaterial() const
void setDefaultMoisture(agx::Real defaultMoisture)
Set the default value for the moisture property of created particles.
const Vec4 & getColor() const
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
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.
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.