[][src]Trait nphysics2d::object::BodyDesc

pub trait BodyDesc<N: RealField> {
    type Body: Body<N>;
    pub fn build_with_handle(
        &self,
        gworld: &mut GeometricalWorld<N, DefaultBodyHandle, DefaultColliderHandle>,
        handle: DefaultBodyHandle
    ) -> Self::Body; }

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

Associated Types

type Body: Body<N>[src]

The type of body being generated.

Loading content...

Required methods

pub fn build_with_handle(
    &self,
    gworld: &mut GeometricalWorld<N, DefaultBodyHandle, DefaultColliderHandle>,
    handle: DefaultBodyHandle
) -> Self::Body
[src]

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

Loading content...

Implementors

Loading content...