Search Unity

Question Instantiated entities doesn't collide each others

Discussion in 'Physics for ECS' started by Airat1995, Jun 9, 2021.

  1. Airat1995

    Airat1995

    Joined:
    Mar 21, 2014
    Posts:
    5
    Hello, I've started learn DOTS some day ago, and decided to create a simple project. When I added some simple physics to the game I faced the problem. I added one object on the scene and other instantiated from resource as prefab (prefab contain physics shape and physics body), but they didn't collide and just go through. When I tried to place both object to the scene they work perfect. Then I tried to instantiate them both and got nothing, I mean they didn't collide... Maybe I miss something? I couldn't find any explanation to this in the Unity Physics doc.

    Tried in Unity 2021.1 and 2020.3
     
  2. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    What settings do you have on your Physics Shape and Physics Body?
    Also, what does your instantiation code look like?
     
  3. Airat1995

    Airat1995

    Joined:
    Mar 21, 2014
    Posts:
    5
    Sorry forgot to post here, found the solution at one old post, here's the link.
     
    steveeHavok likes this.