how to add and set physics shape and physics body

Is there a way I could add a physics shape and set the mesh of an entity and if the shape is a trigger?

a code example would be very appreciated

        EntityManager.AddComponentData(Entity, new physicShape??{Variable = ?? });

I posted an example script in this thread Making a Door in Unity ECS should help you on the right track

2 Likes

thank you