Collider shape: use a trait-object instead of an enum.

This commit is contained in:
Crozet Sébastien
2020-10-20 11:55:33 +02:00
parent 947c4813c9
commit 865ce8a8e5
31 changed files with 782 additions and 438 deletions

7
src/geometry/rounded.rs Normal file
View File

@@ -0,0 +1,7 @@
/// A rounded shape.
pub struct Rounded<S> {
/// The shape being rounded.
pub shape: S,
/// The rounding radius.
pub radius: f32,
}