Struct rapier3d::geometry::Compound[][src]

pub struct Compound { /* fields omitted */ }

A compound shape with an aabb bounding volume.

A compound shape is a shape composed of the union of several simpler shape. This is the main way of creating a concave shape from convex parts. Each parts can have its own delta transformation to shift or rotate it with regard to the other shapes.

Implementations

impl Compound[src]

pub fn new(
    shapes: Vec<(Isometry<f32, U3, Unit<Quaternion<f32>>>, SharedShape), Global>
) -> Compound
[src]

Builds a new compound shape.

Panics if the input vector is empty, of if some of the provided shapes are also composite shapes (nested composite shapes are not allowed).

impl Compound[src]

pub fn shapes(
    &self
) -> &[(Isometry<f32, U3, Unit<Quaternion<f32>>>, SharedShape)]
[src]

The shapes of this compound shape.

pub fn local_aabb(&self) -> &AABB[src]

The AABB of this compound in its local-space.

pub fn local_bounding_sphere(&self) -> BoundingSphere[src]

The bounding-sphere of this compound in its local-space.

pub fn aabbs(&self) -> &[AABB][src]

The shapes AABBs.

pub fn quadtree(&self) -> &SimdQuadTree<u32>[src]

The acceleration structure used by this compound shape.

Trait Implementations

impl Clone for Compound[src]

impl PointQuery for Compound[src]

impl RayCast for Compound[src]

impl Shape for Compound[src]

impl SimdCompositeShape for Compound[src]

impl TypedSimdCompositeShape for Compound[src]

type PartShape = dyn Shape + 'static

type PartId = u32

Auto Trait Implementations

impl !RefUnwindSafe for Compound

impl Send for Compound

impl Sync for Compound

impl Unpin for Compound

impl !UnwindSafe for Compound

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.