chrono::ChEmitterAsset Class Reference
Description
Class that attaches a ChParticleEmitter to a physics item (most often that item is a ChBody).
The emitter can then move together with the body.
#include <ChEmitterAsset.h>
Inheritance diagram for chrono::ChEmitterAsset:
Collaboration diagram for chrono::ChEmitterAsset:
Public Member Functions | |
particlefactory::ChParticleEmitter & | Emitter () |
Access to the emitter. | |
virtual void | Update (ChPhysicsItem *updater, const ChCoordsys<> &coords) override |
Updates the embedded emitter. More... | |
virtual void | ArchiveOUT (ChArchiveOut &marchive) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIN (ChArchiveIn &marchive) override |
Method to allow de-serialization of transient data from archives. | |
Protected Attributes | |
particlefactory::ChParticleEmitter | memitter |
double | last_t |
Member Function Documentation
◆ Update()
|
overridevirtual |
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.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/assets/ChEmitterAsset.h
- /builds/uwsbel/chrono/src/chrono/assets/ChEmitterAsset.cpp