Collider shape: use a trait-object instead of an enum.
This commit is contained in:
7
src/geometry/rounded.rs
Normal file
7
src/geometry/rounded.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user