bevy_quadtree::plugin

Trait TrackingPair

Source
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§

Source

fn update_collision() -> SystemConfigs

return the system to update collision

Source

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

Source

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.

return the system to show box

Source

fn shape_id() -> TypeId

Available on debug-assertions enabled only.

return the shape id, to ensure no duplicate shape updating system added

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,

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1> TrackingPair for (P0, P1)
where P0: TrackingPair, P1: TrackingPair,

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2> TrackingPair for (P0, P1, P2)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3> TrackingPair for (P0, P1, P2, P3)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3, P4> TrackingPair for (P0, P1, P2, P3, P4)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3, P4, P5> TrackingPair for (P0, P1, P2, P3, P4, P5)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3, P4, P5, P6> TrackingPair for (P0, P1, P2, P3, P4, P5, P6)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3, P4, P5, P6, P7> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8> TrackingPair for (P0, P1, P2, P3, P4, P5, P6, P7, P8)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, (Sprite, GlobalTransform))

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, (Sprite,))

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, (GlobalTransform, Sprite))

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, (GlobalTransform,))

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, Sprite)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.
Source§

impl<S> TrackingPair for (S, GlobalTransform)

Source§

fn update_collision() -> SystemConfigs

Source§

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

Available on crate feature gizmos only.
Source§

fn shape_id() -> TypeId

Available on debug-assertions enabled only.

Implementors§