Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how to add and set physics shape and physics body

Discussion in 'Physics for ECS' started by Conspiracy, Jan 11, 2020.

  1. Conspiracy

    Conspiracy

    Joined:
    Oct 22, 2016
    Posts:
    40
    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
    Code (CSharp):
    1.         EntityManager.AddComponentData(Entity, new physicShape??{Variable = ?? });
     
  2. thelebaron

    thelebaron

    Joined:
    Jun 2, 2013
    Posts:
    837
    steveeHavok and Conspiracy like this.
  3. Conspiracy

    Conspiracy

    Joined:
    Oct 22, 2016
    Posts:
    40
    thank you