#Avoiding Compound Colliders with children entity when baking

1 messages · Page 1 of 1 (latest)

spice saddle
#

Hello everyone !

I have and issue I hope someone have a workaround or something.

I have a prefab that instantiate fine ( cf : screenshot )

ConveyorBuildingPrefab have a MeshCollider on it & Both sockets have box colliders.

When instanciating the prefab it turns out that both socket don't have a PhysicsCollider on them but The parent have a PhysicsColliderKeyEntityPair and one single PhysicsCollider.

I need different rules for each Colliders. How Can I ake it so the socket both have their own PhysicsCollider after instanciating it ?

Thanks a Lot.

Bonus question : SystemAPI.GetComponent<PhysicsCollider>(conveyorInput).Value.Value.SetCollisionFilter(_socketsCollisionFilter); --> Is this a good way to setup a collision filter on a PhysicsCollider ?