From 865ce8a8e5301b23ca474adaaffe8b43e725803e Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 20 Oct 2020 11:55:33 +0200 Subject: Collider shape: use a trait-object instead of an enum. --- src/geometry/rounded.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/geometry/rounded.rs (limited to 'src/geometry/rounded.rs') diff --git a/src/geometry/rounded.rs b/src/geometry/rounded.rs new file mode 100644 index 0000000..615d408 --- /dev/null +++ b/src/geometry/rounded.rs @@ -0,0 +1,7 @@ +/// A rounded shape. +pub struct Rounded { + /// The shape being rounded. + pub shape: S, + /// The rounding radius. + pub radius: f32, +} -- cgit