Struct PhysicsColliderKeyEntityPair
A buffer element which associates an original Unity.Entities.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 Unity.Entities.Entity which contained the collider before creation of the compound with the compound's child collider through the child's collider key.
.Implements
IBufferElementData
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 |
Implements
Unity.Entities.IBufferElementData