enable clear_graphics and run_callbacks agin

update plugin signature to recieve bevy structs, add Arc<Mutex<>> around gfx_components, we we can get shared mutable access
add prefab_meshes() access function

Remove Arc<Mutex<>>
This commit is contained in:
rezural
2021-06-28 11:05:55 +10:00
committed by Sébastien Crozet
parent 62d6b0651b
commit 7c249c873d
4 changed files with 72 additions and 28 deletions

View File

@@ -17,6 +17,7 @@ use {
rapier::geometry::{Ball, Cuboid},
};
#[derive(Clone, Debug)]
pub struct EntityWithGraphics {
pub entity: Entity,
pub color: Point3<f32>,