add particles.get_origin(...), particles.set_origin(...)

This commit is contained in:
MihailRis
2024-11-05 04:08:55 +03:00
parent a4f7dbf786
commit edb4ce02ca
3 changed files with 41 additions and 0 deletions
+8
View File
@@ -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;
}
+4
View File
@@ -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);
};