Trait nphysics3d::object::BodyDesc [−][src]
pub trait BodyDesc<N: RealField + Copy> { type Body: Body<N>; fn build_with_handle(
&self,
gworld: &mut GeometricalWorld<N, DefaultBodyHandle, DefaultColliderHandle>,
handle: DefaultBodyHandle
) -> Self::Body; }
Expand description
A abstract body descriptor to be passed to the physics World
to create a body.
Associated Types
Required methods
fn build_with_handle(
&self,
gworld: &mut GeometricalWorld<N, DefaultBodyHandle, DefaultColliderHandle>,
handle: DefaultBodyHandle
) -> Self::Body
fn build_with_handle(
&self,
gworld: &mut GeometricalWorld<N, DefaultBodyHandle, DefaultColliderHandle>,
handle: DefaultBodyHandle
) -> Self::Body
Called by the World
to create a body with the given allocated handle.