Hi, Until now I was working with a Prefab with its own Physics Shape. Now I'm triying to import some premade Prefabs and adding the Physics Shape, or a Collider during instantiation:
I tried this:
BlobAssetReference<Collider> collider = SphereCollider.Create(new SphereGeometry()
{
Center = float3.zero,
Radius = spawner.Scale / 2f
});
Ecb.AddComponent(0, entity, new PhysicsCollider { Value = collider });
but it doesn't seems to work. My original prefabs with physics shape seems to be aware of collisions but the ones with the collider not.
Does the physicsCollider need Layer, group etc filtering? How can I do it?