Exemplo n.º 1
0
 internal unsafe void *GetCollisionCachePointer(PairCacheIndex collisionCacheIndex)
 {
     return(constraintCaches[collisionCacheIndex.Type].Buffer.Memory + collisionCacheIndex.Index);
 }
 public unsafe void AddConstraint <TBodyHandles, TDescription, TContactImpulses>(int manifoldConstraintType,
                                                                                 ref CollidablePair pair, PairCacheIndex constraintCacheIndex, TBodyHandles bodyHandles, ref TDescription constraintDescription, ref TContactImpulses impulses)
     where TDescription : unmanaged, IConstraintDescription <TDescription>
 {
     ref var cache      = ref pendingConstraintsByType[manifoldConstraintType];
Exemplo n.º 3
0
 internal unsafe void *GetConstraintCachePointer(PairCacheIndex constraintCacheIndex)
 {
     //Note that only the count is used to index into the constraint caches.
     //TODO: If you expand the number of contacts that can exist in a single entry, this will have to be updated.
     return(constraintCaches[constraintCacheIndex.Type & 3].Buffer.Memory + constraintCacheIndex.Index);
 }