pub trait WakeSleepCallback<L: ArticulationLink, S: RigidStatic, D: RigidDynamic>: Sized {
    // Required method
    fn on_wake_sleep(&mut self, actors: &[&ActorMap<L, S, D>], is_waking: bool);
}
Expand description

A trait for onWake() and onSleep() callbacks. Parametrized by the ArticulationLink, RigidStatic, and RigidDynamic types of the scene it is in.

Required Methods§

source

fn on_wake_sleep(&mut self, actors: &[&ActorMap<L, S, D>], is_waking: bool)

Implementors§