Skip to content

Commit

Permalink
remove bevy_basic_portals so I can commit acts of war
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Sep 20, 2024
1 parent b4a2a35 commit 22547f7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
22 changes: 0 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions crates/unavi-player/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ unavi-scripting = { path = "../unavi-scripting" }

[target.'cfg(target_family = "wasm")'.dependencies]
web-sys = { workspace = true, features = ["Navigator", "Window"] }

[dev-dependencies]
bevy_basic_portals = "0.6.0"
14 changes: 0 additions & 14 deletions crates/unavi-player/examples/player.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use avian3d::prelude::*;
use bevy::{prelude::*, render::view::RenderLayers};
use bevy_basic_portals::{AsPortalDestination, CreatePortal, CreatePortalBundle, PortalsPlugin};
use bevy_vrm::first_person::{FirstPersonFlag, RENDER_LAYERS};
use unavi_player::PlayerPlugin;

Expand All @@ -13,7 +12,6 @@ fn main() {
}),
PhysicsDebugPlugin::default(),
PhysicsPlugins::default(),
PortalsPlugin::default(),
PlayerPlugin,
))
.add_systems(Startup, setup_scene)
Expand Down Expand Up @@ -58,18 +56,6 @@ fn setup_scene(
Collider::cuboid(GROUND_SIZE, GROUND_THICK, GROUND_SIZE),
));

commands.spawn(CreatePortalBundle {
mesh: meshes.add(Mesh::from(Rectangle::new(GROUND_SIZE, MIRROR_H))),
create_portal: CreatePortal {
destination: AsPortalDestination::CreateMirror,
render_layer: RenderLayers::layer(0)
.union(&RENDER_LAYERS[&FirstPersonFlag::ThirdPersonOnly]),
..default()
},
portal_transform: Transform::from_xyz(0.0, MIRROR_H / 2.0, -GROUND_SIZE / 2.0),
..default()
});

let mut transform = Transform::from_xyz(0.0, 3.0, -10.0);
transform.look_at(Vec3::new(0.0, 0.5, 0.0), Vec3::new(0.0, 1.0, 0.0));
}

0 comments on commit 22547f7

Please sign in to comment.