[][src]Struct ncollide3d::shape::Compound

pub struct Compound<N: RealField> { /* 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.


impl<N: RealField> Compound<N>[src]

pub fn new(shapes: Vec<(Isometry<N>, ShapeHandle<N>)>) -> Compound<N>[src]

Builds a new compound shape.

impl<N: RealField> Compound<N>[src]

pub fn shapes(&self) -> &[(Isometry<N>, ShapeHandle<N>)][src]

The shapes of this compound shape.

pub fn bvt(&self) -> &BVT<usize, AABB<N>>[src]

The optimization structure used by this compound shape.

pub fn aabb(&self) -> &AABB<N>[src]

The AABB of this compound in its local-space.

pub fn bounding_volumes(&self) -> &[AABB<N>][src]

The shapes bounding volumes.

pub fn aabb_at(&self, i: usize) -> &AABB<N>[src]

The AABB of the i-th shape compositing this compound.

pub fn subshape_feature_id(&self, fid: FeatureId) -> (usize, FeatureId)[src]

Transforms a FeatureId of this compound into a pair containing the index of the subshape containing this feature, and the corresponding FeatureId on this subshape.

Trait Implementations

impl<N: Clone + RealField> Clone for Compound<N>[src]

impl<N: RealField> CompositeShape<N> for Compound<N>[src]

impl<N: RealField> HasBoundingVolume<N, AABB<N>> for Compound<N>[src]

impl<N: RealField> HasBoundingVolume<N, BoundingSphere<N>> for Compound<N>[src]

impl<N: RealField> PointQuery<N> for Compound<N>[src]

impl<N: RealField> RayCast<N> for Compound<N>[src]

impl<N: RealField> Shape<N> for Compound<N>[src]

Auto Trait Implementations

impl<N> !RefUnwindSafe for Compound<N>

impl<N> Send for Compound<N> where
    N: Scalar

impl<N> Sync for Compound<N> where
    N: Scalar

impl<N> Unpin for Compound<N> where
    N: Scalar + Unpin

impl<N> !UnwindSafe for Compound<N>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Downcast for T where
    T: Any

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,