Skip to main content

euv_engine/collider/
enum.rs

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