Interface IOverlapCollector
Interface for collecting hits from overlap queries.
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public interface IOverlapCollectorMethods
AddColliderKeys(ColliderKey*, int)
Adds a collider keys to 'count'.
Declaration
void AddColliderKeys(ColliderKey* keys, int count)Parameters
| Type | Name | Description | 
|---|---|---|
| ColliderKey* | keys | [in,out] If non-null, the collider keys. | 
| int | count | Number of collider keys. | 
AddRigidBodyIndices(int*, int)
Adds rigid body indices to the collector.
Declaration
void AddRigidBodyIndices(int* indices, int count)Parameters
| Type | Name | Description | 
|---|---|---|
| int* | indices | [in,out] If non-null, the rigid body indices. | 
| int | count | Number of indices. | 
PopCompositeCollider(uint)
Pops the composite collider described by numCompositeKeyBits.
Declaration
void PopCompositeCollider(uint numCompositeKeyBits)Parameters
| Type | Name | Description | 
|---|---|---|
| uint | numCompositeKeyBits | Number of composite key bits. | 
PushCompositeCollider(ColliderKeyPath)
Pushes a composite collider.
Declaration
void PushCompositeCollider(ColliderKeyPath compositeKey)Parameters
| Type | Name | Description | 
|---|---|---|
| ColliderKeyPath | compositeKey | The composite key. |