pub enum BodyCollider3D {
Aabb(AabbCollider3D),
Sphere(SphereCollider3D),
}Expand description
Wraps the concrete 3D collider shape data attached to a 3D rigid body.
Variants§
Aabb(AabbCollider3D)
A 3D axis-aligned bounding box collider.
Sphere(SphereCollider3D)
A 3D sphere collider.
Trait Implementations§
Source§impl Clone for BodyCollider3D
impl Clone for BodyCollider3D
Source§fn clone(&self) -> BodyCollider3D
fn clone(&self) -> BodyCollider3D
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 BodyCollider3D
Source§impl Debug for BodyCollider3D
impl Debug for BodyCollider3D
Source§impl Default for BodyCollider3D
Implements Default for BodyCollider3D, returning a 3D AABB collider with default values.
impl Default for BodyCollider3D
Implements Default for BodyCollider3D, returning a 3D AABB collider with default values.
Source§fn default() -> BodyCollider3D
fn default() -> BodyCollider3D
Returns the “default value” for a type. Read more
Source§impl PartialEq for BodyCollider3D
impl PartialEq for BodyCollider3D
Source§fn eq(&self, other: &BodyCollider3D) -> bool
fn eq(&self, other: &BodyCollider3D) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BodyCollider3D
Auto Trait Implementations§
impl Freeze for BodyCollider3D
impl RefUnwindSafe for BodyCollider3D
impl Send for BodyCollider3D
impl Sync for BodyCollider3D
impl Unpin for BodyCollider3D
impl UnsafeUnpin for BodyCollider3D
impl UnwindSafe for BodyCollider3D
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