minor update
This commit is contained in:
parent
4a8c9a298a
commit
3b18d1e032
7 changed files with 154 additions and 133 deletions
22
src/viewer.rs
Normal file
22
src/viewer.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
use bevy::{prelude::*, window::PresentMode, render::camera::CameraProjectionPlugin};
|
||||
use offaxis::{offaxis_camera_setup, OffAxisProjection};
|
||||
|
||||
|
||||
#[derive(Component)]
|
||||
struct Viewer;
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Viewer {
|
||||
position: Vec3,
|
||||
orientation: Quat,
|
||||
}
|
||||
|
||||
|
||||
impl Viewer {
|
||||
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
position: Vec3::ZERO,
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue