Function bones_framework::render::camera::spawn_default_camera
source ยท pub fn spawn_default_camera(
entities: &mut Entities,
transforms: &mut CompMut<'_, Transform>,
cameras: &mut CompMut<'_, Camera>,
) -> Entity
Expand description
Utility function that spawns the camera in a default position.
Camera will be spawned such that it is positioned at 0
on X and Y axis and at 1000
on the Z
axis, allowing it to see sprites with a Z position from 0
to 1000
non-inclusive.