Fix 2D compilation.

This commit is contained in:
Crozet Sébastien
2021-01-06 12:53:26 +01:00
parent d1ed279c4e
commit 261ed1ebed
14 changed files with 48 additions and 46 deletions

View File

@@ -1,20 +1,21 @@
use crate::objects::node::{self, GraphicsNode};
use kiss3d::window::Window;
use na::{Isometry3, Point3};
use na::Point3;
use rapier::geometry::{ColliderHandle, ColliderSet};
use rapier::math::Isometry;
pub struct Cylinder {
color: Point3<f32>,
base_color: Point3<f32>,
gfx: GraphicsNode,
collider: ColliderHandle,
delta: Isometry3<f32>,
delta: Isometry<f32>,
}
impl Cylinder {
pub fn new(
collider: ColliderHandle,
delta: Isometry3<f32>,
delta: Isometry<f32>,
half_height: f32,
radius: f32,
color: Point3<f32>,