euv_engine/collider/enum.rs
1/// Represents the geometric shape of a collider.
2#[derive(Clone, Copy, Debug, Default, PartialEq)]
3pub enum ColliderShape {
4 /// An axis-aligned rectangle defined by a `Rect`.
5 #[default]
6 Aabb,
7 /// A circle defined by a `Circle`.
8 Circle,
9}
10
11/// Represents the geometric shape of a 3D collider.
12#[derive(Clone, Copy, Debug, Default, PartialEq)]
13pub enum ColliderShape3D {
14 /// A 3D axis-aligned bounding box defined by an `AABB3D`.
15 #[default]
16 Aabb,
17 /// A sphere defined by a `Sphere`.
18 Sphere,
19}