Struct nphysics2d::detection::ActivationManager[][src]

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

Structure that monitors island-based activation/deactivation of bodies.

It is responsible for making objects sleep or wake up.

Methods

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

Creates a new ActivationManager2.

Arguments:

  • thresold - the minimum energy required to keep an object awake.
  • mix_factor - the ratio of energy to keep between two frames.

Notify the ActivationManager2 that is has to activate an object at the next update.

Update the activation manager, activating and deactivating objects when needed.

Auto Trait Implementations

impl<N> Send for ActivationManager<N>

impl<N> Sync for ActivationManager<N>