fn add_particle_graphics(
        &self,
        particle: &Point<Real>,
        particle_radius: f32,
        graphics: &mut GraphicsManager,
        commands: &mut Commands,
        meshes: &mut Assets<Mesh>,
        materials: &mut Assets<StandardMaterial>,
        _components: &mut Query<(&mut Transform,)>,
        _harness: &mut Harness,
        color: &Point3<f32>,
        force_shape: Option<SharedShape>,
    ) -> Vec<EntityWithGraphics> {
        let shape = if let Some(shape) = force_shape {
            shape
        } else {
            match self.fluids_rendering_mode {
                #[cfg(feature = "dim3")]
                FluidsRenderingMode::VelocityArrows { .. } => {
                    SharedShape::cone(particle_radius, particle_radius / 4.)
                }
                // #[cfg(feature = "dim2")]
                //FIXME: This doesn't work, it is caused by either not being in prefab_meshes, or the shape_type not being supported.. somewhere
                // FluidsRenderingMode::VelocityArrows { .. } => SharedShape::triangle(
                //     Point::new(0., particle_radius),
                //     Point::new(particle_radius * 0.4, -particle_radius * 0.8),
                //     Point::new(-particle_radius * 0.4, -particle_radius * 0.8),
                // ),
                _ => SharedShape::ball(particle_radius),
            }
        };

        let mut shapes = Vec::new();
        let isometry =
            Isometry::from_parts(Translation::from(particle.coords), Rotation::identity());
        graphics.add_shape(
            commands,
            meshes,
            materials,
            None,
            &*shape,
            false,
            &isometry,
            &Isometry::identity(),
            *color,
            &mut shapes,
        );
        shapes
    }
// TODO: pass velocity & acceleration vectors in
pass velocity & acceleration vectors in
pass velocity & acceleration vectors in
fn add_particle_graphics(
        &self,
        particle: &Point<Real>,
        particle_radius: f32,
        graphics: &mut GraphicsManager,
        commands: &mut Commands,
        meshes: &mut Assets<Mesh>,
        materials: &mut Assets<StandardMaterial>,
        _components: &mut Query<(&mut Transform,)>,
        _harness: &mut Harness,
        color: &Point3<f32>,
        force_shape: Option<SharedShape>,
    ) -> Vec<EntityWithGraphics> {
        let shape = if let Some(shape) = force_shape {
            shape
        } else {
            match self.fluids_rendering_mode {
                #[cfg(feature = "dim3")]
                FluidsRenderingMode::VelocityArrows { .. } => {
                    SharedShape::cone(particle_radius, particle_radius / 4.)
                }
                // #[cfg(feature = "dim2")]
                //FIXME: This doesn't work, it is caused by either not being in prefab_meshes, or the shape_type not being supported.. somewhere
                // FluidsRenderingMode::VelocityArrows { .. } => SharedShape::triangle(
                //     Point::new(0., particle_radius),
                //     Point::new(particle_radius * 0.4, -particle_radius * 0.8),
                //     Point::new(-particle_radius * 0.4, -particle_radius * 0.8),
                // ),
                _ => SharedShape::ball(particle_radius),
            }
        };
        let mut shapes = Vec::new();
        let isometry =
            Isometry::from_parts(Translation::from(particle.coords), Rotation::identity());
        graphics.add_shape(
            commands,
            meshes,
            materials,
            None,
            &*shape,
            false,
            &isometry,
            &Isometry::identity(),
            *color,
            &mut shapes,
        );
        shapes
    }
fn add_particle_graphics ( & self , particle : & Point < Real > , particle_radius : f32 , graphics : & mut GraphicsManager , commands : & mut Commands , meshes : & mut Assets < Mesh > , materials : & mut Assets < StandardMaterial > , _components : & mut Query < ( & mut Transform , ) > , _harness : & mut Harness , color : & Point3 < f32 > , force_shape : Option < SharedShape > , ) -> Vec < EntityWithGraphics > { let shape = if let Some ( shape ) = force_shape { shape } else { match self . fluids_rendering_mode { # [ cfg ( feature " " ) ] FluidsRenderingMode :: VelocityArrows { .. } => { SharedShape :: cone ( particle_radius , particle_radius / 4. ) } // #[cfg(feature = "dim2")] //FIXME: This doesn't work, it is caused by either not being in prefab_meshes, or the shape_type not being supported.. somewhere // FluidsRenderingMode::VelocityArrows { .. } => SharedShape::triangle( //     Point::new(0., particle_radius), //     Point::new(particle_radius * 0.4, -particle_radius * 0.8), //     Point::new(-particle_radius * 0.4, -particle_radius * 0.8), // ), _ => SharedShape :: ball ( particle_radius ) , } } ; let mut shapes = Vec :: new ( ) ; let isometry = Isometry :: from_parts ( Translation :: from ( particle . coords ) , Rotation :: identity ( ) ) ; graphics . add_shape ( commands , meshes , materials , None , & * shape , false , & isometry , & Isometry :: identity ( ) , * color , & mut shapes , ) ; shapes }
TODO: pass velocity & acceleration vectors in
TODO : pass velocity & acceleration vectors in
&self
particle
&Point<Real>
particle_radius
f32
graphics
&mut GraphicsManager
commands
&mut Commands
meshes
&mut Assets<Mesh>
materials
&mut Assets<StandardMaterial>
_components
&mut Query<(&mut Transform,)>
_harness
&mut Harness
color
&Point3<f32>
force_shape
Option<SharedShape>
&self
particle
&Point<Real>
particle_radius
f32
graphics
&mut GraphicsManager
commands
&mut Commands
meshes
&mut Assets<Mesh>
materials
&mut Assets<StandardMaterial>
_components
&mut Query<(&mut Transform,)>
_harness
&mut Harness
color
&Point3<f32>
force_shape
Option<SharedShape>