diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 12:55:04 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-19 12:55:04 +0100 |
commit | fe396c458b38ee209dd4c1f3ba4d053bef20f57a (patch) | |
tree | 129c0c74263336c24fb0c24ec6ab187295188d2e /src/crepe/system/ParticleSystem.cpp | |
parent | d355d374f9e3182750b2cfce1036d0cc011d60dd (diff) |
tested system, added roation to emitter
Diffstat (limited to 'src/crepe/system/ParticleSystem.cpp')
-rw-r--r-- | src/crepe/system/ParticleSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/ParticleSystem.cpp b/src/crepe/system/ParticleSystem.cpp index 3183fd7..31c1800 100644 --- a/src/crepe/system/ParticleSystem.cpp +++ b/src/crepe/system/ParticleSystem.cpp @@ -51,7 +51,7 @@ void ParticleSystem::emit_particle(ParticleEmitter & emitter, const Transform & vec2 initial_position = AbsolutePosition::get_position(transform, emitter.data.offset); float random_angle - = this->generate_random_angle(emitter.data.min_angle, emitter.data.max_angle); + = this->generate_random_angle(emitter.data.min_angle+transform.rotation, emitter.data.max_angle+transform.rotation); float random_speed = this->generate_random_speed(emitter.data.min_speed, emitter.data.max_speed); |