pub enum CharacterShape {
Capsule {
radius: f32,
height: f32,
},
Box2 {
half: Vec2,
},
}Variants§
Implementations§
Source§impl CharacterShape
impl CharacterShape
pub fn valid(self) -> bool
pub fn half_extents(self) -> Vec3
pub fn bounds(self, feet: Vec3) -> QueryBounds
Trait Implementations§
Source§impl Clone for CharacterShape
impl Clone for CharacterShape
Source§fn clone(&self) -> CharacterShape
fn clone(&self) -> CharacterShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharacterShape
impl Debug for CharacterShape
Source§impl PartialEq for CharacterShape
impl PartialEq for CharacterShape
impl Copy for CharacterShape
impl StructuralPartialEq for CharacterShape
Auto Trait Implementations§
impl Freeze for CharacterShape
impl RefUnwindSafe for CharacterShape
impl Send for CharacterShape
impl Sync for CharacterShape
impl Unpin for CharacterShape
impl UnwindSafe for CharacterShape
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