Interface IBoundsQueryableCompound
- Namespace
- BepuPhysics.CollisionDetection.CollisionTasks
- Assembly
- BepuPhysics.dll
public interface IBoundsQueryableCompound
Methods
FindLocalOverlaps<TEnumerator>(Vector3, Vector3, BufferPool, Shapes, ref TEnumerator)
Finds the indices of all children whose local-space bounding boxes overlap the given local-space AABB.
void FindLocalOverlaps<TEnumerator>(Vector3 min, Vector3 max, BufferPool pool, Shapes shapes, ref TEnumerator enumerator) where TEnumerator : IBreakableForEach<int>
Parameters
minVector3Minimum corner of the query AABB in the compound's local space.
maxVector3Maximum corner of the query AABB in the compound's local space.
poolBufferPoolPool used for any temporary allocations during traversal.
shapesShapesShape collection used to look up child bounds for compounds with heterogeneous children. May be null for homogeneous compounds that don't require it.
enumeratorTEnumeratorEnumerator that receives the indices of overlapping children.
Type Parameters
TEnumeratorType of the enumerator that receives child indices.
FindLocalOverlaps<TOverlaps>(Vector3, Vector3, Vector3, float, BufferPool, Shapes, void*)
void FindLocalOverlaps<TOverlaps>(Vector3 min, Vector3 max, Vector3 sweep, float maximumT, BufferPool pool, Shapes shapes, void* overlaps) where TOverlaps : ICollisionTaskSubpairOverlaps
Parameters
Type Parameters
TOverlaps
FindLocalOverlaps<TOverlaps, TSubpairOverlaps>(ref Buffer<OverlapQueryForPair>, BufferPool, Shapes, ref TOverlaps)
void FindLocalOverlaps<TOverlaps, TSubpairOverlaps>(ref Buffer<OverlapQueryForPair> pairs, BufferPool pool, Shapes shapes, ref TOverlaps overlaps) where TOverlaps : struct, ICollisionTaskOverlaps<TSubpairOverlaps> where TSubpairOverlaps : struct, ICollisionTaskSubpairOverlaps
Parameters
pairsBuffer<OverlapQueryForPair>poolBufferPoolshapesShapesoverlapsTOverlaps
Type Parameters
TOverlapsTSubpairOverlaps