aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-11 21:37:08 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-11 21:37:08 +0100
commit0d88ba90c55c0df97e418ce36c435955481b2850 (patch)
tree6ba0c63bb21c0b8375450c482f675ae50dca45cd /src/crepe/system
parentcf96d9639dbd18df6451a07fd7b623616e842c4a (diff)
adjusted renderingsystem
Diffstat (limited to 'src/crepe/system')
-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);
}
}