Struct nphysics3d::object::ActivationStatus[][src]

pub struct ActivationStatus<N: Real> { /* fields omitted */ }

The activation status of a body.

This controls whether a body is sleeping or not.

Methods

impl<N: Real> ActivationStatus<N>
[src]

The default amount of energy bellow which a body can be put to sleep by nphysics.

Create a new activation status initialised with the default activation threshold and is active.

Create a new activation status initialised with the default activation threshold and is inactive.

Retuns true if the body is not asleep.

The threshold bellow which the body can be put to sleep.

A value of None indicates that the body cannot sleep.

Set the threshold bellow which the body can be put to sleep.

A value of None prevents the body from sleeping.

The current energy averaged through several frames.

Sets the current average energy of the body.

Trait Implementations

impl<N: Copy + Real> Copy for ActivationStatus<N>
[src]

impl<N: Clone + Real> Clone for ActivationStatus<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for ActivationStatus<N>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<N> Send for ActivationStatus<N>

impl<N> Sync for ActivationStatus<N>