aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/debug_render_pipeline/outlines.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-03-17 21:20:18 +0100
committerSébastien Crozet <sebcrozet@dimforge.com>2024-03-17 21:24:28 +0100
commitecd308338b189ab569816a38a03e3f8b89669dde (patch)
treefa612abff2f23ea6a5ff04c64c07296d9fb065c8 /src/pipeline/debug_render_pipeline/outlines.rs
parentda92e5c2837b27433286cf0dd9d887fd44dda254 (diff)
downloadrapier-bevy-glam.tar.gz
rapier-bevy-glam.tar.bz2
rapier-bevy-glam.zip
feat: start experimenting with a glam/bevy versionbevy-glam
Diffstat (limited to 'src/pipeline/debug_render_pipeline/outlines.rs')
-rw-r--r--src/pipeline/debug_render_pipeline/outlines.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pipeline/debug_render_pipeline/outlines.rs b/src/pipeline/debug_render_pipeline/outlines.rs
index cd0b6ed..56e26ec 100644
--- a/src/pipeline/debug_render_pipeline/outlines.rs
+++ b/src/pipeline/debug_render_pipeline/outlines.rs
@@ -1,12 +1,12 @@
use crate::geometry::{Ball, Cuboid};
#[cfg(feature = "dim3")]
use crate::geometry::{Cone, Cylinder};
-use crate::math::{Point, Real, Vector};
+use crate::math::*;
use std::any::TypeId;
use std::collections::HashMap;
#[cfg(feature = "dim2")]
-pub fn instances(nsubdivs: u32) -> HashMap<TypeId, Vec<Point<Real>>> {
+pub fn instances(nsubdivs: u32) -> HashMap<TypeId, Vec<Point>> {
let mut result = HashMap::new();
result.insert(
TypeId::of::<Cuboid>(),
@@ -18,7 +18,7 @@ pub fn instances(nsubdivs: u32) -> HashMap<TypeId, Vec<Point<Real>>> {
#[cfg(feature = "dim3")]
#[allow(clippy::type_complexity)]
-pub fn instances(nsubdivs: u32) -> HashMap<TypeId, (Vec<Point<Real>>, Vec<[u32; 2]>)> {
+pub fn instances(nsubdivs: u32) -> HashMap<TypeId, (Vec<Point>, Vec<[u32; 2]>)> {
let mut result = HashMap::new();
result.insert(
TypeId::of::<Cuboid>(),