Start adding cylinders.
This commit is contained in:
@@ -26,6 +26,7 @@ use rapier::geometry::{Collider, ColliderHandle, ColliderSet, Shape};
|
||||
//#[cfg(feature = "fluids")]
|
||||
//use crate::objects::FluidRenderingMode;
|
||||
use crate::objects::capsule::Capsule;
|
||||
use crate::objects::cylinder::Cylinder;
|
||||
use crate::objects::mesh::Mesh;
|
||||
use rand::{Rng, SeedableRng};
|
||||
use rand_pcg::Pcg32;
|
||||
@@ -392,6 +393,14 @@ impl GraphicsManager {
|
||||
color,
|
||||
window,
|
||||
))),
|
||||
#[cfg(feature = "dim3")]
|
||||
Shape::Cylinder(cylinder) => out.push(Node::Cylinder(Cylinder::new(
|
||||
handle,
|
||||
cylinder.half_height,
|
||||
cylinder.radius,
|
||||
color,
|
||||
window,
|
||||
))),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user