use openxr git version (#62)
* fix problems with get version * a litle Recentering as a treat? * commit new Cargo.toml * re export path null so you don't have to import openxr yourself
This commit is contained in:
10
src/input.rs
10
src/input.rs
@@ -50,8 +50,14 @@ impl XrInput {
|
||||
// xr::Posef::IDENTITY,
|
||||
// )?;
|
||||
|
||||
let stage =
|
||||
session.create_reference_space(xr::ReferenceSpaceType::STAGE, xr::Posef::IDENTITY)?;
|
||||
let stage = match instance.exts().ext_local_floor {
|
||||
None => session
|
||||
.create_reference_space(xr::ReferenceSpaceType::STAGE, xr::Posef::IDENTITY)?,
|
||||
Some(_) => session.create_reference_space(
|
||||
xr::ReferenceSpaceType::LOCAL_FLOOR_EXT,
|
||||
xr::Posef::IDENTITY,
|
||||
)?,
|
||||
};
|
||||
let head =
|
||||
session.create_reference_space(xr::ReferenceSpaceType::VIEW, xr::Posef::IDENTITY)?;
|
||||
// let y = stage
|
||||
|
||||
Reference in New Issue
Block a user