Skip to content

Commit

Permalink
a litle Recentering as a treat?
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmarni-Dev committed Jan 1, 2024
1 parent cb7dd4b commit 9973676
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9973676

Please sign in to comment.