Enum nphysics3d::object::ActivationState [] [src]

pub enum ActivationState {
    Active(Scalar),
    Inactive,
    Deleted,
}

The activation state of a rigid body.

Variants

Active(Scalar)

The rigid body is active with a not-zero energy.

Inactive

The rigid body is inactive.

Deleted

The rigid body has been removed from the physics engine.

Methods

impl ActivationState
[src]

fn energy(&self) -> Scalar

The energy accumulated other several frames.

Trait Implementations

impl Decodable for ActivationState
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ActivationState, __D::Error>

impl Encodable for ActivationState
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for ActivationState
[src]

fn clone(&self) -> ActivationState

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl PartialEq for ActivationState
[src]

fn eq(&self, __arg_0: &ActivationState) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ActivationState) -> bool

This method tests for !=.

impl Debug for ActivationState
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.