pub fn with_camera_position(mut self, position: [f32; 2]) -> Self {
        let position = Vec2::from(position);
        let old_pos = self.transform.translation;
        self.transform.translation = position.extend(old_pos.z);
        self
    }
/// Sets the camera position on spawn.
Sets the camera position on spawn.
Sets the camera position on spawn .
pub fn with_camera_position(mut self, position: [f32; 2]) -> Self {
        let position = Vec2::from(position);
        let old_pos = self.transform.translation;
        self.transform.translation = position.extend(old_pos.z);
        self
    }
pub fn with_camera_position ( mut self , position : [ f32 ; 2 ] ) -> Self { let position = Vec2 :: from ( position ) ; let old_pos = self . transform . translation ; self . transform . translation = position . extend ( old_pos . z ) ; self }
Sets the camera position on spawn.
Sets the camera position on spawn .
mut self
position
[f32; 2]
mut self
position
[f32; 2]