mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-06-14 03:27:39 +00:00
14 lines
534 B
Rust
14 lines
534 B
Rust
|
//! The general app camera module, not to be confused with the `game::camera`¹ module.
|
||
|
//!
|
||
|
//! 1: I can't link to out of scope private items, so you'll have to navigate there yourself.
|
||
|
use bevy::prelude::*;
|
||
|
|
||
|
/// Sets up the camera for the entire app, with a starting position for the game. (TODO: probably change that)
|
||
|
/// This camera is also used for menu rendering etc.
|
||
|
pub fn setup(mut c: Commands) {
|
||
|
c.spawn((
|
||
|
Camera3d::default(),
|
||
|
Transform::from_xyz(-20., 15., 0.).looking_at(Vec3::ZERO, Vec3::Y),
|
||
|
));
|
||
|
}
|