Struct rhusics::collide::ecs::BasicCollisionSystem [] [src]

pub struct BasicCollisionSystem<P, T, D> where
    P: Primitive,
    P::Aabb: Clone + Debug + Aabb<Scalar = f32>, 
{ /* fields omitted */ }

Collision detection system for use with specs.

Has support for both broad phase and narrow phase collision detection. Will only do narrow phase if both broad and narrow phase is activated.

Can handle any transform component type, as long as the type implements Transform, and as long as the storage is wrapped in a FlaggedStorage.

Methods

impl<P, T, D> BasicCollisionSystem<P, T, D> where
    P: Primitive + Send + Sync + 'static,
    P::Aabb: Aabb<Scalar = f32> + Clone + Debug + Send + Sync + 'static,
    <P::Point as EuclideanSpace>::Diff: Debug,
    T: Transform<P::Point> + Component,
    D: HasBound<Bound = P::Aabb>, 
[src]

[src]

Create a new collision detection system, with no broad or narrow phase activated.

[src]

Specify what narrow phase algorithm to use

[src]

Specify what broad phase algorithm to use

Trait Implementations

impl<'a, P, T, D> System<'a> for BasicCollisionSystem<P, T, D> where
    P: Primitive + Send + Sync + 'static,
    P::Aabb: Aabb<Scalar = f32> + Clone + Debug + Send + Sync + 'static,
    P::Point: Debug + Send + Sync + 'static,
    <P::Point as EuclideanSpace>::Diff: Debug + Send + Sync + 'static,
    T: Component + Transform<P::Point> + Send + Sync + Clone + 'static,
    D: HasBound<Bound = P::Aabb> + From<(Entity, &'b CollisionShape<P, T>)> + GetEntity
[src]

The resource bundle required to execute this system. Read more

[src]

Executes the system with the required system data. Read more

Returns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more