18 #ifndef AGX_PARTICLE_EMITTER_H 19 #define AGX_PARTICLE_EMITTER_H 51 void setLife(
Real life );
62 void setColor(
const Vec4& color );
67 const Vec4& getColor( )
const;
72 void setEnableMoisture(
bool enable);
77 bool getEnableMoisture()
const;
82 void setDefaultMoisture(
agx::Real defaultMoisture);
101 virtual ~ParticleEmitter();
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;
109 virtual
Real getDefaultElementQuantity(
Quantity quantity) override;
117 bool m_isGranularSystem;
123 bool m_enableMoistureProperty = false;
124 agx::
Real m_defaultMoisture = 0;
162 virtual ~DistributionModel();
163 virtual
agx::
Real calculateVolume() override;
164 virtual
agx::
Real calculateMass() override;
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
A class holding 4 dimensional vectors and providing basic arithmetic.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Spawns new bodys inside a given volume.
A basic particle system that contains all the storages and buffers required for basic operation and a...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Event2< ParticleEmitter *, agxData::EntityRange > Event
Main material class which acts as a holder of a Surface Material and a Bulk material.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Spawns new particles inside a given volume given to the Emitter.
#define AGX_DECLARE_VECTOR_TYPES(type)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()