chrono::ChEmitterAsset Class Reference


Class that attachs a ChParticleEmitter to a physics item (most often that item is a ChBody).

The emitter can move together with the body, then.

#include <ChEmitterAsset.h>

Inheritance diagram for chrono::ChEmitterAsset:
Collaboration diagram for chrono::ChEmitterAsset:

Public Member Functions

particlefactory::ChParticleEmitterEmitter ()
 Access to the emitter.
virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords)
 Updates the embedded emitter. More...
virtual void ArchiveOUT (ChArchiveOut &marchive)
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.

Protected Attributes

particlefactory::ChParticleEmitter memitter
double last_t

Member Function Documentation

void chrono::ChEmitterAsset::Update ( ChPhysicsItem updater,
const ChCoordsys<> &  coords 

Updates the embedded emitter.

If a dt is passed, it creates the particles. No need to call this by the user, it is called automatically by the asset owner (ie. the body).

Reimplemented from chrono::ChAsset.