[−][src]Struct physme::broad::BroadPhase
The broad phase, using an R*-tree.
Implementations
impl<T: RTreeObject + Collider> BroadPhase<T> where
NPoint<T::Point>: Point,
[src]
NPoint<T::Point>: Point,
pub fn with_colliders(colliders: Vec<T>) -> Self
[src]
Create a new BroadPhase
with some colliders.
pub fn iter(&self) -> impl Iterator<Item = (&T, &T)> + '_
[src]
Iterate through all pairs of shapes that are potentially colliding.
Collisions with static objects are iterated over before semikinematic.
Trait Implementations
impl<T: Clone + RTreeObject> Clone for BroadPhase<T>
[src]
fn clone(&self) -> BroadPhase<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + RTreeObject> Debug for BroadPhase<T>
[src]
impl<T: Default + RTreeObject> Default for BroadPhase<T>
[src]
fn default() -> BroadPhase<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for BroadPhase<T> where
T: RefUnwindSafe,
<T as RTreeObject>::Envelope: RefUnwindSafe,
T: RefUnwindSafe,
<T as RTreeObject>::Envelope: RefUnwindSafe,
impl<T> Send for BroadPhase<T> where
T: Send,
<T as RTreeObject>::Envelope: Send,
T: Send,
<T as RTreeObject>::Envelope: Send,
impl<T> Sync for BroadPhase<T> where
T: Sync,
<T as RTreeObject>::Envelope: Sync,
T: Sync,
<T as RTreeObject>::Envelope: Sync,
impl<T> Unpin for BroadPhase<T> where
T: Unpin,
<T as RTreeObject>::Envelope: Unpin,
T: Unpin,
<T as RTreeObject>::Envelope: Unpin,
impl<T> UnwindSafe for BroadPhase<T> where
T: UnwindSafe,
<T as RTreeObject>::Envelope: UnwindSafe,
T: UnwindSafe,
<T as RTreeObject>::Envelope: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
T: Default,
fn from_resources(_resources: &Resources) -> T
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,