Trait physx::simulation_event_callback::AdvanceCallback[][src]

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

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

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

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

Loading content...

Implementors

Loading content...