mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add particles.get_origin(...), particles.set_origin(...)
This commit is contained in:
parent
a4f7dbf786
commit
edb4ce02ca
3 changed files with 41 additions and 0 deletions
|
|
@ -113,3 +113,11 @@ void Emitter::stop() {
|
|||
bool Emitter::isDead() const {
|
||||
return count == 0;
|
||||
}
|
||||
|
||||
const EmitterOrigin& Emitter::getOrigin() const {
|
||||
return origin;
|
||||
}
|
||||
|
||||
void Emitter::setOrigin(const EmitterOrigin& origin) {
|
||||
this->origin = origin;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,4 +81,8 @@ public:
|
|||
|
||||
/// @return true if the emitter has spawned all particles
|
||||
bool isDead() const;
|
||||
|
||||
const EmitterOrigin& getOrigin() const;
|
||||
|
||||
void setOrigin(const EmitterOrigin& origin);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue