pub enum ColliderShape {
Box {
center: [f64; 3],
size: [f64; 3],
},
Sphere {
center: [f64; 3],
radius: f64,
},
Capsule {
center: [f64; 3],
radius: f64,
height: f64,
direction: usize,
},
Mesh {
mesh: Option<ObjRef>,
convex: bool,
},
}Expand description
A collider’s shape as stored, in its GameObject’s space (Unity’s frame).
Variants§
Box
A box collider.
Fields
Sphere
A sphere collider.
Fields
Capsule
A capsule collider.
Fields
Mesh
A mesh collider.
Trait Implementations§
Source§impl Clone for ColliderShape
impl Clone for ColliderShape
Source§impl Debug for ColliderShape
impl Debug for ColliderShape
Source§impl PartialEq for ColliderShape
impl PartialEq for ColliderShape
impl StructuralPartialEq 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