Interface ILeafColliderCollector
Interface for collecting leaf colliders.
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public interface ILeafColliderCollector
Methods
AddLeaf(ColliderKey, ref ChildCollider)
Adds a leaf to the collector.
Declaration
void AddLeaf(ColliderKey key, ref ChildCollider leaf)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderKey | key | The collider key specifying the leaf. |
| ChildCollider | leaf | [in,out] The leaf collider. |
PopCompositeCollider(uint, MTransform)
Pops the composite collider from the collector.
Declaration
void PopCompositeCollider(uint numCompositeKeyBits, Math.MTransform worldFromParent)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | numCompositeKeyBits | Number of composite key bits. |
| Math.MTransform | worldFromParent | The world from parent transform. |
PushCompositeCollider(ColliderKeyPath, MTransform, out MTransform)
Pushes a composite collider to the collector.
Declaration
void PushCompositeCollider(ColliderKeyPath compositeKey, Math.MTransform parentFromComposite, out Math.MTransform worldFromParent)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderKeyPath | compositeKey | The composite key. |
| Math.MTransform | parentFromComposite | The parent from composite transform. |
| Math.MTransform | worldFromParent | [out] The world from parent transform. |