trying out custom projection code
This commit is contained in:
parent
ad97bb7aab
commit
1272865a79
2 changed files with 7 additions and 0 deletions
|
@ -7,3 +7,4 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = "0.7" # make sure this is the latest version
|
bevy = "0.7" # make sure this is the latest version
|
||||||
|
# vrpn = "0.1.0" # not compatible with 2021
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
mod scene;
|
mod scene;
|
||||||
|
mod offaxis;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
|
@ -13,6 +14,11 @@ fn main() {
|
||||||
})
|
})
|
||||||
.add_plugins(DefaultPlugins)
|
.add_plugins(DefaultPlugins)
|
||||||
.add_plugin(scene::BuildScenePlugin)
|
.add_plugin(scene::BuildScenePlugin)
|
||||||
|
.add_startup_system(offaxis::camera_setup)
|
||||||
|
// .add_system_to_stage(
|
||||||
|
// CoreStage::PostUpdate,
|
||||||
|
// camera_system::<offaxis::OffAxisProjection>,
|
||||||
|
// )
|
||||||
// .add_system(hello_world)
|
// .add_system(hello_world)
|
||||||
// .add_startup_system(add_scene)
|
// .add_startup_system(add_scene)
|
||||||
// .add_system(print_positions)
|
// .add_system(print_positions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue