pub enum ColliderShape {
Sphere {
offset: Vec3,
radius: f32,
inside: bool,
},
Capsule {
offset: Vec3,
radius: f32,
tail: Vec3,
inside: bool,
},
Plane {
offset: Vec3,
normal: Vec3,
},
}Expand description
The geometric shape of a spring collider.
Variants§
Sphere
A spherical boundary centered at a node-local offset.
Fields
Capsule
A capsule boundary between two node-local points.
Fields
Plane
A one-sided infinite plane boundary.
Trait Implementations§
Source§impl Clone for ColliderShape
impl Clone for ColliderShape
Auto Trait Implementations§
impl Freeze for ColliderShape
impl RefUnwindSafe for ColliderShape
impl Send for ColliderShape
impl Sync for ColliderShape
impl Unpin for ColliderShape
impl UnsafeUnpin for ColliderShape
impl UnwindSafe for ColliderShape
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