pub trait TrackingPair:
Send
+ Sync
+ 'static {
// Required methods
fn update_collision() -> SystemConfigs;
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>( ) -> SystemConfigs;
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>( ) -> SystemConfigs;
fn shape_id() -> TypeId;
}Expand description
(S, C) pair where S is collision shape and C is the component used to update S.
Also implemented for tuple of (S, C) pairs.
Required Methods§
Sourcefn update_collision() -> SystemConfigs
fn update_collision() -> SystemConfigs
return the system to update collision
Sourcefn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
return the system to update quadtree
Sourcefn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature gizmos only.
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
gizmos only.return the system to show box
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<P0> TrackingPair for (P0,)where
P0: TrackingPair,
impl<P0> TrackingPair for (P0,)where
P0: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1> TrackingPair for (P0, P1)where
P0: TrackingPair,
P1: TrackingPair,
impl<P0, P1> TrackingPair for (P0, P1)where
P0: TrackingPair,
P1: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2> TrackingPair for (P0, P1, P2)
impl<P0, P1, P2> TrackingPair for (P0, P1, P2)
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3> TrackingPair for (P0, P1, P2, P3)
impl<P0, P1, P2, P3> TrackingPair for (P0, P1, P2, P3)
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3, P4> TrackingPair for (P0, P1, P2, P3, P4)
impl<P0, P1, P2, P3, P4> TrackingPair for (P0, P1, P2, P3, P4)
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3, P4, P5> TrackingPair for (P0, P1, P2, P3, P4, P5)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
impl<P0, P1, P2, P3, P4, P5> TrackingPair for (P0, P1, P2, P3, P4, P5)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3, P4, P5, P6> TrackingPair for (P0, P1, P2, P3, P4, P5, P6)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
impl<P0, P1, P2, P3, P4, P5, P6> TrackingPair for (P0, P1, P2, P3, P4, P5, P6)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3, P4, P5, P6, P7> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
P7: TrackingPair,
impl<P0, P1, P2, P3, P4, P5, P6, P7> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
P7: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7, P8)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
P7: TrackingPair,
P8: TrackingPair,
impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7, P8)where
P0: TrackingPair,
P1: TrackingPair,
P2: TrackingPair,
P3: TrackingPair,
P4: TrackingPair,
P5: TrackingPair,
P6: TrackingPair,
P7: TrackingPair,
P8: TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, (Sprite, GlobalTransform))where
S: Component + DynCollision + UpdateCollision<Sprite> + UpdateCollision<GlobalTransform> + Clone,
Sprite: Component,
GlobalTransform: Component,
(S, Sprite): TrackingPair,
(S, GlobalTransform): TrackingPair,
impl<S> TrackingPair for (S, (Sprite, GlobalTransform))where
S: Component + DynCollision + UpdateCollision<Sprite> + UpdateCollision<GlobalTransform> + Clone,
Sprite: Component,
GlobalTransform: Component,
(S, Sprite): TrackingPair,
(S, GlobalTransform): TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, (Sprite,))where
S: Component + DynCollision + UpdateCollision<Sprite> + Clone,
Sprite: Component,
(S, Sprite): TrackingPair,
impl<S> TrackingPair for (S, (Sprite,))where
S: Component + DynCollision + UpdateCollision<Sprite> + Clone,
Sprite: Component,
(S, Sprite): TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, (GlobalTransform, Sprite))where
S: Component + DynCollision + UpdateCollision<GlobalTransform> + UpdateCollision<Sprite> + Clone,
GlobalTransform: Component,
Sprite: Component,
(S, GlobalTransform): TrackingPair,
(S, Sprite): TrackingPair,
impl<S> TrackingPair for (S, (GlobalTransform, Sprite))where
S: Component + DynCollision + UpdateCollision<GlobalTransform> + UpdateCollision<Sprite> + Clone,
GlobalTransform: Component,
Sprite: Component,
(S, GlobalTransform): TrackingPair,
(S, Sprite): TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, (GlobalTransform,))where
S: Component + DynCollision + UpdateCollision<GlobalTransform> + Clone,
GlobalTransform: Component,
(S, GlobalTransform): TrackingPair,
impl<S> TrackingPair for (S, (GlobalTransform,))where
S: Component + DynCollision + UpdateCollision<GlobalTransform> + Clone,
GlobalTransform: Component,
(S, GlobalTransform): TrackingPair,
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, Sprite)
impl<S> TrackingPair for (S, Sprite)
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.Source§impl<S> TrackingPair for (S, GlobalTransform)
impl<S> TrackingPair for (S, GlobalTransform)
fn update_collision() -> SystemConfigs
fn update_quadtree<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Source§fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
fn show_boundary<const N: usize, const W: usize, const H: usize, const K: usize, const ID: usize>() -> SystemConfigs
Available on crate feature
gizmos only.