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 (seecollision::primitive
for more information)B
: Bounding volume (Aabb3
orSphere
for most scenarios)Y
: collision detection manager type (seerhusics_core::Collider
for more information)
Methods
impl<P, B, Y> PhysicsBundle3<P, B, Y>
[src]
impl<P, B, Y> PhysicsBundle3<P, B, Y>
pub fn new() -> Self
[src]
pub fn new() -> Self
Create new bundle
pub fn with_spatial(self) -> Self
[src]
pub fn with_spatial(self) -> Self
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]
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,
Auto Trait Implementations
impl<P, B, Y> Send for PhysicsBundle3<P, B, Y> where
B: Send,
P: Send,
Y: Send,
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,
impl<P, B, Y> Sync for PhysicsBundle3<P, B, Y> where
B: Sync,
P: Sync,
Y: Sync,