aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/system/RenderSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp
index 3fbd175..8bbf441 100644
--- a/src/crepe/system/RenderSystem.cpp
+++ b/src/crepe/system/RenderSystem.cpp
@@ -51,6 +51,7 @@ void RenderSystem::render_particle(const ParticleEmitter& em, Transform & tm){
for (const Particle& p : em.data.particles) {
if (!p.active) continue;
tm.position = p.position;
+ tm.rotation = p.angle;
render.draw(em.data.sprite, tm , *curr_cam);
}
}
@@ -67,7 +68,6 @@ void RenderSystem::render_sprites() {
auto transforms
= mgr.get_components_by_id<Transform>(em.game_object_id);
test.scale = transforms[0].get().scale;
- test.rotation = transforms[0].get().rotation;
this->render_particle(em, test);
}
}