update with VRPN integration
This commit is contained in:
parent
9c778afa2b
commit
d7bc604289
6 changed files with 1003 additions and 182 deletions
|
@ -50,6 +50,8 @@ pub fn apply_viewer_to_projections(mut query: Query<(&Viewer,&ScreenInfo,&mut Of
|
|||
|
||||
*transform = Transform::from_matrix(view.inverse());
|
||||
|
||||
// *transform = Transform::from_translation(eye).looking_at(Vec3::ZERO, Vec3::Y);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -62,12 +64,12 @@ pub fn simulate_viewer(mut query: Query<&mut Viewer>,time: Res<Time>) {
|
|||
|
||||
let radius = 1.0;
|
||||
|
||||
let z_distance = 2.0_f32;
|
||||
let z_distance = 3.0_f32;
|
||||
|
||||
v.position = Vec3::new(
|
||||
v.alpha.sin() * radius,
|
||||
v.alpha.cos() * radius,
|
||||
z_distance,
|
||||
z_distance + v.alpha.sin(),
|
||||
);
|
||||
|
||||
info!("Viewer {:?}",v.position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue