Function physx_sys::PxSceneQuerySystem_sync_mut
source · pub unsafe extern "C" fn PxSceneQuerySystem_sync_mut(
self_: *mut PxSceneQuerySystem,
prunerIndex: u32,
handles: *const u32,
indices: *const u32,
bounds: *const PxBounds3,
transforms: *const PxTransformPadded,
count: u32,
ignoredIndices: *const PxBitMap
)
Expand description
Synchronizes the scene-query system with another system that references the same objects.
This function is used when the scene-query objects also exist in another system that can also update them. For example the scene-query objects (used for raycast, overlap or sweep queries) might be driven by equivalent objects in an external rigid-body simulation engine. In this case the rigid-body simulation engine computes the new poses and transforms, and passes them to the scene-query system using this function. It is more efficient than calling updateSQShape on each object individually, since updateSQShape would end up recomputing the bounds already available in the rigid-body engine.