pub struct AabbCollider3D { /* private fields */ }Expand description
A 3D axis-aligned bounding box collider wrapping an AABB3D.
Implementations§
Source§impl AabbCollider3D
Implements Collider3D trait and convenience methods for AabbCollider3D.
impl AabbCollider3D
Implements Collider3D trait and convenience methods for AabbCollider3D.
Sourcepub fn from_center(
center: Vector3D,
width: f64,
height: f64,
depth: f64,
) -> AabbCollider3D
pub fn from_center( center: Vector3D, width: f64, height: f64, depth: f64, ) -> AabbCollider3D
Sourcepub fn collide_with_aabb(
&self,
other: &AabbCollider3D,
) -> Option<CollisionResult3D>
pub fn collide_with_aabb( &self, other: &AabbCollider3D, ) -> Option<CollisionResult3D>
Sourcepub fn collide_with_sphere(
&self,
sphere: &SphereCollider3D,
) -> Option<CollisionResult3D>
pub fn collide_with_sphere( &self, sphere: &SphereCollider3D, ) -> Option<CollisionResult3D>
Trait Implementations§
Source§impl Clone for AabbCollider3D
impl Clone for AabbCollider3D
Source§fn clone(&self) -> AabbCollider3D
fn clone(&self) -> AabbCollider3D
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 moreSource§impl Collider3D for AabbCollider3D
Implements the Collider3D trait for AabbCollider3D.
impl Collider3D for AabbCollider3D
Implements the Collider3D trait for AabbCollider3D.
Source§fn shape(&self) -> ColliderShape3D
fn shape(&self) -> ColliderShape3D
Returns the geometric shape of this 3D collider. Read more
Source§fn bounding_box(&self) -> AABB3D
fn bounding_box(&self) -> AABB3D
Returns the 3D axis-aligned bounding box that encloses this collider. Read more
impl Copy for AabbCollider3D
Source§impl Debug for AabbCollider3D
impl Debug for AabbCollider3D
Source§impl Default for AabbCollider3D
impl Default for AabbCollider3D
Source§fn default() -> AabbCollider3D
fn default() -> AabbCollider3D
Returns the “default value” for a type. Read more
Source§impl PartialEq for AabbCollider3D
impl PartialEq for AabbCollider3D
Source§fn eq(&self, other: &AabbCollider3D) -> bool
fn eq(&self, other: &AabbCollider3D) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AabbCollider3D
impl PartialOrd for AabbCollider3D
impl StructuralPartialEq for AabbCollider3D
Auto Trait Implementations§
impl Freeze for AabbCollider3D
impl RefUnwindSafe for AabbCollider3D
impl Send for AabbCollider3D
impl Sync for AabbCollider3D
impl Unpin for AabbCollider3D
impl UnsafeUnpin for AabbCollider3D
impl UnwindSafe for AabbCollider3D
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