remove avian, we don't actually need it
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use std::f32::consts::PI;
|
||||
use std::f32::consts::{FRAC_PI_2, PI};
|
||||
|
||||
use avian3d::{math::FRAC_PI_2, prelude::*};
|
||||
use bevy::prelude::*;
|
||||
use bevy_cef::prelude::*;
|
||||
use bevy_mod_openxr::prelude::*;
|
||||
@@ -41,7 +40,6 @@ pub struct KneeboardPlugin;
|
||||
|
||||
impl Plugin for KneeboardPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_plugins(PhysicsPlugins::default());
|
||||
app.add_plugins(CefPlugin {
|
||||
command_line_config: CommandLineConfig {
|
||||
switches: ["--no-zygote", "--no-sandbox"].to_vec(),
|
||||
@@ -163,11 +161,8 @@ fn spawn_kneeboard(
|
||||
position: Res<KneeboardPosition>,
|
||||
) {
|
||||
commands.spawn((
|
||||
RigidBody::Static,
|
||||
WebviewSource::new("http://localhost:7878/"),
|
||||
WebviewSize(Vec2::new(210.0 * 3.5, 279.0 * 3.5)),
|
||||
Collider::cuboid(0.210, 0.279, 0.01),
|
||||
CollidingEntities::default(),
|
||||
WebviewSource::new("http://localhost:7878/"), // i want this to become dynamic.... from ui or something
|
||||
WebviewSize(Vec2::new(210.0 * 3.5, 279.0 * 3.5)), // this can also be dynamic... kinda like rotating phone
|
||||
Mesh3d(meshes.add(Cuboid::new(0.210, 0.279, 0.01))),
|
||||
MeshMaterial3d(materials.add(WebviewExtendStandardMaterial {
|
||||
base: StandardMaterial {
|
||||
|
||||
Reference in New Issue
Block a user