Struct PhysicsColliderKeyEntityPair
A buffer element which associates an original Entity with a child collider in a CompoundCollider through the child's ColliderKey.
This buffer is automatically added during baking to rigid body entities whose colliders are regrouped and baked into a compound collider. It contains one entry per child in the resultant compound collider, associating the original Entity which contained the collider before creation of the compound with the compound's child collider through the child's collider key.
.Implements
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
[InternalBufferCapacity(0)]
public struct PhysicsColliderKeyEntityPair : IBufferElementData
Fields
Entity
The entity.
Declaration
public Entity Entity
Field Value
Type | Description |
---|---|
Entity |
Key
The key.
Declaration
public ColliderKey Key
Field Value
Type | Description |
---|---|
ColliderKey |