pub enum ColliderShape {
Aabb {
width: f32,
height: f32,
},
Circle {
radius: f32,
},
}Expand description
Collision volume shape attached to a game entity.
Variants§
Aabb
Axis-aligned bounding box defined by full (width, height) centered on entity position.
Circle
Circle collider defined by radius centered on entity position.
Trait Implementations§
Source§impl Clone for ColliderShape
impl Clone for ColliderShape
impl Copy 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 Forget for ColliderShape
impl Freeze for ColliderShape
impl Move 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