aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/camera2d.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src_testbed/camera2d.rs')
-rw-r--r--src_testbed/camera2d.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src_testbed/camera2d.rs b/src_testbed/camera2d.rs
index 81b3263..46aacf1 100644
--- a/src_testbed/camera2d.rs
+++ b/src_testbed/camera2d.rs
@@ -9,6 +9,7 @@ use bevy::render::camera::Camera;
const LINE_TO_PIXEL_RATIO: f32 = 0.1;
+#[derive(Component)]
pub struct OrbitCamera {
pub zoom: f32,
pub center: Vec3,
@@ -87,7 +88,7 @@ impl OrbitCameraPlugin {
}
}
impl Plugin for OrbitCameraPlugin {
- fn build(&self, app: &mut AppBuilder) {
+ fn build(&self, app: &mut App) {
app.add_system(Self::mouse_motion_system.system())
.add_system(Self::zoom_system.system())
.add_system(Self::update_transform_system.system());