Table of Contents

Class PairCache

Namespace
BepuPhysics.CollisionDetection
Assembly
BepuPhysics.dll
public class PairCache
Inheritance
PairCache
Inherited Members

Constructors

PairCache(BufferPool, int, int, int)

public PairCache(BufferPool pool, int initialSetCapacity, int minimumMappingSize, int minimumPendingSize)

Parameters

pool BufferPool
initialSetCapacity int
minimumMappingSize int
minimumPendingSize int

Fields

CollisionConstraintTypeCount

public const int CollisionConstraintTypeCount = 22

Field Value

int

CollisionTypeCount

public const int CollisionTypeCount = 16

Field Value

int

Mapping

public QuickDictionary<CollidablePair, ConstraintCache, CollidablePairComparer> Mapping

Field Value

QuickDictionary<CollidablePair, ConstraintCache, CollidablePairComparer>

Methods

Dispose()

public void Dispose()

FlushMappingChanges()

public void FlushMappingChanges()

GetCache(int)

public ref ConstraintCache GetCache(int index)

Parameters

index int

Returns

ConstraintCache

IndexOf(CollidablePair)

public int IndexOf(CollidablePair pair)

Parameters

pair CollidablePair

Returns

int

Postflush()

public void Postflush()

Prepare(IThreadDispatcher)

public void Prepare(IThreadDispatcher threadDispatcher = null)

Parameters

threadDispatcher IThreadDispatcher

PrepareFlushJobs(ref QuickList<NarrowPhaseFlushJob>)

Flush all deferred changes from the last narrow phase execution.

public void PrepareFlushJobs(ref QuickList<NarrowPhaseFlushJob> jobs)

Parameters

jobs QuickList<NarrowPhaseFlushJob>