[][src]Trait nphysics3d::object::BodyDesc

pub trait BodyDesc<N: RealField> {
    type Body: Body<N>;
    fn build_with_handle(
        &self,
        cworld: &mut ColliderWorld<N>,
        handle: BodyHandle
    ) -> Self::Body; }

A abstract body descriptor to be passed to the physics World to create a body.

Associated Types

type Body: Body<N>

The type of body being generated.

Loading content...

Required methods

fn build_with_handle(
    &self,
    cworld: &mut ColliderWorld<N>,
    handle: BodyHandle
) -> Self::Body

Called by the World to create a body with the given allocated handle.

Loading content...

Implementors

impl<'a, N: RealField> BodyDesc<N> for FEMVolumeDesc<'a, N>[src]

type Body = FEMVolume<N>

impl<'a, N: RealField> BodyDesc<N> for MassConstraintSystemDesc<'a, N>[src]

type Body = MassConstraintSystem<N>

impl<'a, N: RealField> BodyDesc<N> for MassSpringSystemDesc<'a, N>[src]

type Body = MassSpringSystem<N>

impl<'a, N: RealField> BodyDesc<N> for MultibodyDesc<'a, N>[src]

type Body = Multibody<N>

impl<'a, N: RealField> BodyDesc<N> for RigidBodyDesc<'a, N>[src]

type Body = RigidBody<N>

Loading content...