mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-09 20:25:31 +00:00
add removed target to camera
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user