pub enum SphColliderShape {
Box {
center: Vec3,
half_extents: Vec3,
inward: bool,
},
Sphere {
center: Vec3,
radius: f32,
inward: bool,
},
Capsule {
point_a: Vec3,
point_b: Vec3,
radius: f32,
},
Cylinder {
center: Vec3,
radius: f32,
half_height: f32,
inward: bool,
},
Plane {
point: Vec3,
normal: Vec3,
},
MovingContainer {
center: Vec3,
half_extents: Vec3,
linear_velocity: Vec3,
},
}Expand description
Composable solid boundary or obstacle geometry supported by SphSolidCollider.
Variants§
Box
Axis-aligned box acting as an enclosing vessel (inward = true) or solid obstacle (inward = false).
Fields
Sphere
Spherical vessel (inward = true) or solid obstacle (inward = false).
Fields
Capsule
Solid capsule obstacle defined by segment endpoints and radius.
Fields
Cylinder
Vertical Y-axis cylinder acting as a tank (inward = true) or pillar (inward = false).
Fields
Plane
Infinite half-space solid plane retaining particles on the +normal side.
Fields
MovingContainer
Enclosed moving rectangular vessel imparting wall velocity and friction to contained fluid.
Trait Implementations§
Source§impl Clone for SphColliderShape
impl Clone for SphColliderShape
impl Copy for SphColliderShape
Source§impl Debug for SphColliderShape
impl Debug for SphColliderShape
Source§impl PartialEq for SphColliderShape
impl PartialEq for SphColliderShape
impl StructuralPartialEq for SphColliderShape
Auto Trait Implementations§
impl Forget for SphColliderShape
impl Freeze for SphColliderShape
impl Move for SphColliderShape
impl RefUnwindSafe for SphColliderShape
impl Send for SphColliderShape
impl Sync for SphColliderShape
impl Unpin for SphColliderShape
impl UnsafeUnpin for SphColliderShape
impl UnwindSafe for SphColliderShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more