update
This commit is contained in:
parent
2a144f3420
commit
5a75999209
2 changed files with 7 additions and 5 deletions
|
@ -40,7 +40,11 @@ impl Default for OffAxisProjection {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
far: 1000.0,
|
far: 1000.0,
|
||||||
projection_matrix: make_projection_rh_custom(45.0f32.to_radians(),1.3f32, 1.0, 1000.0)
|
projection_matrix: make_projection_rh_custom(
|
||||||
|
45.0f32.to_radians(),
|
||||||
|
1.3f32,
|
||||||
|
1.0,
|
||||||
|
1000.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,6 @@ use vrpn::{
|
||||||
TypedBodylessHandler, Unbuffer,
|
TypedBodylessHandler, Unbuffer,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TrackerProxy;
|
|
||||||
|
|
||||||
#[derive(Resource, Debug)]
|
#[derive(Resource, Debug)]
|
||||||
pub struct Tracker;
|
pub struct Tracker;
|
||||||
|
|
||||||
|
@ -43,7 +41,7 @@ impl FromWorld for Tracker {
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
|
|
||||||
// 212.201.64.122 | 127.0.0.1
|
// 212.201.64.122 | 127.0.0.1
|
||||||
let addr: SocketAddr = "212.201.64.122:3883".parse().unwrap();
|
let addr: SocketAddr = "127.0.0.1:3883".parse().unwrap();
|
||||||
let mut stream = TcpStream::connect(addr).unwrap();
|
let mut stream = TcpStream::connect(addr).unwrap();
|
||||||
stream.set_nodelay(true).unwrap();
|
stream.set_nodelay(true).unwrap();
|
||||||
|
|
||||||
|
@ -92,7 +90,7 @@ impl FromWorld for Tracker {
|
||||||
match result {
|
match result {
|
||||||
|
|
||||||
Ok(result) => { eprintln!("Pose from tracker {:?}",result.body);},
|
Ok(result) => { eprintln!("Pose from tracker {:?}",result.body);},
|
||||||
Err(_) => {}
|
Err(_) => { /* silently fail */ }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue