Function heron::rapier_plugin::rapier::ncollide::pipeline::create_proxies [−][src]
pub fn create_proxies<N, Handle>(
handle: Handle,
broad_phase: &mut impl BroadPhase<N, AABB<N>, Handle>,
interactions: &mut InteractionGraph<N, Handle>,
position: &Isometry<N, U3, Unit<Quaternion<N>>>,
shape: &impl Shape<N>,
query_type: GeometricQueryType<N>
) -> (BroadPhaseProxyHandle, NodeIndex<usize>) where
Handle: CollisionObjectHandle,
N: RealField,
Registers a collision object handle so it can be taken into acconut by the broad-phase and the narrow-phase.
This tells the broad-phase and the interaction graph exists and allow them to perform some setup to accomodate
for a new collision object with the given handle
, and known to currently have the given position
, shape
and query_type
.
The result of this registration is a pair of handles that must be stored by the user as the will be needed for various
queries (on the broad-phase and interaction graph), as well as for freeing (using remove_proxies
) the resources allocated here.