pub enum M2PhysicsShapeType {
None = 0,
Sphere = 1,
Capsule = 2,
Plane = 3,
Box = 4,
}Expand description
Physics simulation shape types
Variants§
None = 0
No shape (physics disabled)
Sphere = 1
Sphere collision
Capsule = 2
Capsule (cylinder with rounded ends)
Plane = 3
Plane (infinite flat surface)
Box = 4
Box (cuboid)
Implementations§
Trait Implementations§
Source§impl Clone for M2PhysicsShapeType
impl Clone for M2PhysicsShapeType
Source§fn clone(&self) -> M2PhysicsShapeType
fn clone(&self) -> M2PhysicsShapeType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for M2PhysicsShapeType
Source§impl Debug for M2PhysicsShapeType
impl Debug for M2PhysicsShapeType
impl Eq for M2PhysicsShapeType
Source§impl PartialEq for M2PhysicsShapeType
impl PartialEq for M2PhysicsShapeType
Source§fn eq(&self, other: &M2PhysicsShapeType) -> bool
fn eq(&self, other: &M2PhysicsShapeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for M2PhysicsShapeType
Auto Trait Implementations§
impl Freeze for M2PhysicsShapeType
impl RefUnwindSafe for M2PhysicsShapeType
impl Send for M2PhysicsShapeType
impl Sync for M2PhysicsShapeType
impl Unpin for M2PhysicsShapeType
impl UnsafeUnpin for M2PhysicsShapeType
impl UnwindSafe for M2PhysicsShapeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more