[][src]Struct nphysics3d::object::Ground

pub struct Ground<N: RealField> { /* fields omitted */ }

A singleton representing the ground.

Most of its methods are useless but provided anyway to be similar to the other bodies.

Methods

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

pub fn new() -> Self[src]

Build a new ground structrure.

Trait Implementations

impl<N: RealField> Body<N> for Ground<N>[src]

fn update_activation_status(&mut self)[src]

Update whether this body needs to be waken up after a user-interaction.

fn add_local_inertia_and_com(
    &mut self,
    _part_index: usize,
    _com: Point<N>,
    _inertia: Inertia<N>
)
[src]

Add the given inertia to the local inertia of this body part.

fn status_dependent_ndofs(&self) -> usize[src]

The number of degrees of freedom (DOF) of this body, taking its status into account. Read more

fn status_dependent_body_part_velocity(
    &self,
    part: &dyn BodyPart<N>
) -> Velocity<N>
[src]

The velocity of the specified body part, taking this body status into account. Read more

impl<N: RealField> BodyPart<N> for Ground<N>[src]

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<N: Debug + RealField> Debug for Ground<N>[src]

Auto Trait Implementations

impl<N> Send for Ground<N>

impl<N> Unpin for Ground<N> where
    N: Unpin

impl<N> Sync for Ground<N>

impl<N> UnwindSafe for Ground<N> where
    N: UnwindSafe

impl<N> RefUnwindSafe for Ground<N> where
    N: RefUnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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

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

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]