MCPcopy Index your code
hub / github.com/awtterpip/bevy_oxr

github.com/awtterpip/bevy_oxr @v0.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.4.0 ↗ · + Follow
489 symbols 778 edges 51 files 65 documented · 13% updated 18d agov0.4.0 · 2025-10-19★ 4056 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bevy Mod XR

A crate for adding openxr (and in the future webxr) support to Bevy.

To see it in action run the example in crates/bevy_openxr/examples with cargo run -p bevy_mod_openxr --example 3d_scene

Discord

Come hang out if you have questions or issues https://discord.gg/sqMw7UJhNc

Troubleshooting

  • Make sure, if you're on Linux, that you have the openxr package installed on your system.
  • I'm getting poor performance.
    • Like other bevy projects, make sure you're building in release (example: cargo run -p bevy_mod_openxr --example 3d_scene --release)

License

Unless otherwise specified, all code in this repository is dual-licensed under either:

  • MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)

at your option. This means you can select the license you prefer!

Your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

GraphicsType (Interface)
A type that can be used in [`GraphicsWrap`]. # Example ``` pub struct XrSession(GraphicsWrap ); impl Graphi [5 implementers]
crates/bevy_openxr/src/openxr/graphics.rs
CompositionLayer (Interface)
# Safety the header function must return a ref to a valid Composition Layer struct. it has to use `repr(C)` and it has t [2 …
crates/bevy_openxr/src/openxr/layer_builder.rs
GraphicsExt (Interface)
This is an extension trait to the [`Graphics`](openxr::Graphics) trait and is how the graphics API should be interacted [2 …
crates/bevy_openxr/src/openxr/graphics.rs
OxrSpaceExt (Interface)
# Safety This is an Extension trait. DO NOT IMPLEMENT IT! [1 implementers]
crates/bevy_openxr/src/openxr/spaces.rs
LayerProvider (Interface)
(no doc) [2 implementers]
crates/bevy_openxr/src/openxr/layer_builder.rs

Core symbols most depended-on inside this repo

as_raw
called by 25
crates/bevy_openxr/src/openxr/layer_builder.rs
as_raw_openxr_space
called by 12
crates/bevy_openxr/src/openxr/spaces.rs
get
called by 11
crates/bevy_openxr/src/openxr/layer_builder.rs
into_raw
called by 11
crates/bevy_openxr/src/openxr/layer_builder.rs
add_xr_plugins
called by 10
crates/bevy_openxr/src/openxr/mod.rs
cvt
called by 9
crates/bevy_openxr/src/openxr/spaces.rs
to_vec3
called by 9
crates/bevy_openxr/src/openxr/helper_traits.rs
chain
called by 7
crates/bevy_openxr/src/openxr/session.rs

Shape

Method 168
Function 150
Class 142
Interface 17
Enum 12

Languages

Rust100%

Modules by API surface

crates/bevy_openxr/src/openxr/spaces.rs41 symbols
crates/bevy_xr/src/session.rs34 symbols
crates/bevy_openxr/src/openxr/resources.rs33 symbols
crates/bevy_openxr/src/openxr/layer_builder.rs24 symbols
crates/bevy_xr_utils/src/tracking_utils.rs22 symbols
crates/bevy_xr_utils/src/actions.rs21 symbols
crates/bevy_xr/src/camera.rs20 symbols
crates/bevy_openxr/src/openxr/render.rs19 symbols
crates/bevy_openxr/src/openxr/init.rs18 symbols
crates/bevy_openxr/src/openxr/helper_traits.rs18 symbols
crates/bevy_xr/src/hands.rs17 symbols
crates/bevy_openxr/src/openxr/session.rs13 symbols

For agents

$ claude mcp add bevy_oxr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page