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

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

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

It is responsible for making objects sleep or wake up.

Methods

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

Creates a new ActivationManager.

Arguments:

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

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

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