コード例 #1
0
 public void Initialize(BufferPool pool, int substepCapacity, ref CollidablePair pair, float speculativeMargin)
 {
     Manifolds.Initialize(pool, substepCapacity);
     Pair = pair;
     SpeculativeMargin = speculativeMargin;
     ManifoldsReported = 0;
 }
コード例 #2
0
 public void Initialize(ref CollidablePair pair, float speculativeMargin)
 {
     Pair = pair;
     SpeculativeMargin = speculativeMargin;
     ManifoldsReported = 0;
     LinearManifold.SetConvexityAndCount(2, false);
 }
コード例 #3
0
 public void Initialize(BufferPool pool, int substepCapacity, ref CollidablePair pair, float speculativeMargin)
 {
     SubstepManifolds.Initialize(pool, substepCapacity);
     Pair = pair;
     ManifoldsReported = 0;
     SpeculativeMargin = speculativeMargin;
     LinearManifold.SetConvexityAndCount(2, false);
 }
コード例 #4
0
        public PairCacheIndex Add <TCollision, TConstraint>(ref CollidablePair pair, ref TCollision collisionCache, ref TConstraint constraintCache, int manifoldTypeAsConstraintType)
            where TCollision : IPairCacheEntry where TConstraint : IPairCacheEntry
        {
            PendingAdd pendingAdd;

            WorkerCacheAdd(ref collisionCache, ref constraintCache, manifoldTypeAsConstraintType, out pendingAdd.Pointers);
            pendingAdd.Pair = pair;
            PendingAdds.Add(ref pendingAdd, pool.SpecializeFor <PendingAdd>());
            return(pendingAdd.Pointers.ConstraintCache);
        }
コード例 #5
0
 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];
コード例 #6
0
 public void Initialize(ref CollidablePair pair, in Vector3 relativeLinearVelocity, in Vector3 angularVelocityA, in Vector3 angularVelocityB, float t)
コード例 #7
0
 public void Initialize(ref CollidablePair pair)
 {
     Pair = pair;
 }
コード例 #8
0
 public int AddSubstepsWithLinear(ref CollidablePair pair, int substepCount, float speculativeMargin)
 {
     substepWithLinear.Allocate(pool, out var index).Initialize(pool, substepCount, ref pair, speculativeMargin);
     return(index);
 }
コード例 #9
0
 public int AddLinear(ref CollidablePair pair, float speculativeMargin)
 {
     linear.Allocate(pool, out var index).Initialize(ref pair, speculativeMargin);
     return(index);
 }
コード例 #10
0
 public ContinuationIndex AddDiscrete(ref CollidablePair pair, float speculativeMargin)
 {
     discrete.Allocate(pool, out var index).Initialize(ref pair, speculativeMargin);
     return(new ContinuationIndex((int)ConstraintGeneratorType.Discrete, index, 0));
 }
コード例 #11
0
 public void Initialize(ref CollidablePair pair, float speculativeMargin)
 {
     Pair = pair;
     SpeculativeMargin = speculativeMargin;
 }
コード例 #12
0
 public unsafe void Configure(CollidablePair parent, int childA, int childB, ContactManifold *manifold)
 {
     narrowPhase.Callbacks.ConfigureContactManifold(workerIndex, parent, childA, childB, manifold);
 }
コード例 #13
0
 public bool AllowCollisionTesting(CollidablePair parent, int childA, int childB)
 {
     return(narrowPhase.Callbacks.AllowContactGeneration(workerIndex, parent, childA, childB));
 }