/// Register a coupling between a boundary and a collider.
/// There can be only up to one coupling between a collider and a boundary object. If a coupling
/// already exists for this collider when calling this function, the handle of the previously coupled
/// boundary is returned.
Register a coupling between a boundary and a collider.
There can be only up to one coupling between a collider and a boundary object. If a coupling
already exists for this collider when calling this function, the handle of the previously coupled
boundary is returned.
Register a coupling between a boundary and a collider . There can be only up to one coupling between a collider and a boundary object . If a coupling already exists for this collider when calling this function the handle of the previously coupled boundary is returned .
pub fn register_coupling(
        &mut self,
        boundary: BoundaryHandle,
        collider: ColliderHandle,
        sampling_method: ColliderSampling,
    ) -> Option<BoundaryHandle> {
        let old = self.entries.insert(
            collider,
            ColliderCouplingEntry {
                sampling_method,
                boundary,
                features: Vec::new(),
            },
        );
        old.map(|e| e.boundary)
    }
pub fn register_coupling ( & mut self , boundary : BoundaryHandle , collider : ColliderHandle , sampling_method : ColliderSampling , ) -> Option < BoundaryHandle > { let old = self . entries . insert ( collider , ColliderCouplingEntry { sampling_method , boundary , features : Vec :: new ( ) , } , ) ; old . map ( | e | e . boundary ) }
Register a coupling between a boundary and a collider.
Register a coupling between a boundary and a collider .
&mut self
boundary
BoundaryHandle
collider
ColliderHandle
sampling_method
ColliderSampling