add removed target to camera

This commit is contained in:
arthur.jamet
2021-06-03 15:00:42 +02:00
parent dd62fc806c
commit ba315e4010
+2
View File
@@ -59,6 +59,8 @@ namespace BBM
void RenderSystem::onUpdate(WAL::Entity &entity, std::chrono::nanoseconds dtime)
{
const auto &pos = entity.getComponent<PositionComponent>();
const auto &cam = entity.getComponent<CameraComponent>();
_camera.setPosition(pos.position);
_camera.setTarget(cam.target);
}
}