Struct amethyst_rhusics::PhysicsBundle3[][src]

pub struct PhysicsBundle3<P, B, Y> { /* fields omitted */ }

Bundle for configuring 3D physics, using the basic collision detection setup in rhusics.

Type parameters:

  • P: Collision primitive (see collision::primitive for more information)
  • B: Bounding volume (Aabb3 or Sphere for most scenarios)
  • Y: collision detection manager type (see rhusics_core::Collider for more information)

Methods

impl<P, B, Y> PhysicsBundle3<P, B, Y>
[src]

Create new bundle

Enable spatial sorting

Cause rhusics to use SpatialSortingSystem and SpatialCollisionSystem instead of BasicCollisionSystem which is the default.

Trait Implementations

impl<'a, 'b, P, B, Y> SystemBundle<'a, 'b> for PhysicsBundle3<P, B, Y> where
    P: Primitive<Point = Point3<f32>> + ComputeBound<B> + Send + Sync + 'static,
    B: Bound<Point = P::Point> + Clone + Discrete<B> + Union<B, Output = B> + Contains<B> + SurfaceArea<Scalar = f32> + Debug + Send + Sync + 'static,
    Y: Default + Collider + Send + Sync + 'static, 
[src]

Build and add ECS resources, register components, add systems etc to the Application.

Auto Trait Implementations

impl<P, B, Y> Send for PhysicsBundle3<P, B, Y> where
    B: Send,
    P: Send,
    Y: Send

impl<P, B, Y> Sync for PhysicsBundle3<P, B, Y> where
    B: Sync,
    P: Sync,
    Y: Sync