Camera modifs
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ fn follow_player(
|
|||||||
player: Single<&Transform, (With<Player>, Without<Camera2d>)>,
|
player: Single<&Transform, (With<Player>, Without<Camera2d>)>,
|
||||||
mut camera: Single<&mut Transform, (With<Camera2d>, Without<Player>)>,
|
mut camera: Single<&mut Transform, (With<Camera2d>, Without<Player>)>,
|
||||||
) {
|
) {
|
||||||
camera.translation = player.translation;
|
camera.translation.y = player.translation.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct CameraPlugin;
|
pub struct CameraPlugin;
|
||||||
|
|||||||
Reference in New Issue
Block a user