pub trait AdvanceCallback<L: ArticulationLink, D: RigidDynamic>: Sized {
    // Required method
    fn on_advance(
        &self,
        actors: &[&RigidBodyMap<L, D>],
        transforms: &[PxTransform]
    );
}
Expand description

A trait for the Advance Callback. onAdvance() is called during simulation, so it must be thread safe, and self is not mutable. Parametrized by the ArticulationLink and RigidDynamic types of the scene it is in.

Required Methods§

source

fn on_advance(&self, actors: &[&RigidBodyMap<L, D>], transforms: &[PxTransform])

All actors with PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW set will be passed into here once the simulate call has updated their position.

Implementors§