I have a compound collider and I would like to obtain the collider that represents the physics shape attached to the root entity, can anyone enlighten me?
Root Entity
| - body
| - shape <= looking for this one
- Child Entity
- shape
I have a compound collider and I would like to obtain the collider that represents the physics shape attached to the root entity, can anyone enlighten me?
Root Entity
| - body
| - shape <= looking for this one
collider->GetLeaf(new ColliderKey(1, 0), out var c))