add bevy::math::{DVec3,DQuat} import to common

This commit is contained in:
yuni 2024-05-13 00:55:49 +02:00
parent c292c66900
commit 7f3770cf49
9 changed files with 4 additions and 9 deletions

View file

@ -16,7 +16,6 @@
use bevy::prelude::*;
use bevy_xpbd_3d::prelude::*;
use bevy::math::DVec3;
use crate::prelude::*;
pub const ENGINE_SPEED_FACTOR: f32 = 30.0;

View file

@ -19,7 +19,6 @@ use bevy::core_pipeline::bloom::{BloomCompositeMode, BloomSettings};
use bevy::core_pipeline::tonemapping::Tonemapping;
use bevy::pbr::{CascadeShadowConfigBuilder, DirectionalLightShadowMap};
use bevy::transform::TransformSystem;
use bevy::math::{DVec3, DQuat};
use bevy_xpbd_3d::prelude::*;
use bevy_xpbd_3d::plugins::sync;
use crate::prelude::*;

View file

@ -13,7 +13,6 @@
use crate::prelude::*;
use bevy::prelude::*;
use bevy::math::DVec3;
use bevy_xpbd_3d::prelude::*;
use serde_yaml::Value;
use serde::Deserialize;

View file

@ -13,7 +13,6 @@
extern crate regex;
use bevy::prelude::*;
use bevy_xpbd_3d::prelude::*;
use bevy::math::DVec3;
use bevy::pbr::{NotShadowCaster, NotShadowReceiver};
use crate::prelude::*;
use regex::Regex;

View file

@ -12,6 +12,8 @@
use bevy::prelude::*;
pub use bevy::math::{DVec3, DQuat};
pub use std::f32::consts::PI as PI32;
pub use std::f64::consts::PI;
pub const EPSILON32: f32 = 1e-9;

View file

@ -12,7 +12,6 @@
use crate::prelude::*;
use bevy::prelude::*;
use bevy::math::DVec3;
use bevy::pbr::ExtendedMaterial;
use bevy::scene::SceneInstance;
use bevy_xpbd_3d::prelude::*;

View file

@ -16,7 +16,6 @@ use bevy::prelude::*;
use bevy::diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin};
use bevy::transform::TransformSystem;
use bevy_xpbd_3d::prelude::*;
use bevy::math::DVec3;
use std::collections::VecDeque;
use std::time::SystemTime;

View file

@ -10,8 +10,7 @@
//
// This module manages the messy, impure parts of our universe.
use bevy::math::DVec3;
use std::f64::consts::PI as PI;
use crate::prelude::*;
pub const OXYGEN_USE_KG_PER_S: f32 = 1e-5;
pub const OXY_S: f32 = OXYGEN_USE_KG_PER_S;

View file

@ -12,7 +12,7 @@
use crate::prelude::*;
use bevy::prelude::*;
use bevy::math::{DVec3, I64Vec3};
use bevy::math::I64Vec3;
use bevy::scene::{InstanceId, SceneInstance};
use bevy::render::mesh::Indices;
use bevy_xpbd_3d::prelude::*;