Search Unity

parent and children

Discussion in 'Entity Component System' started by mattinjersey, May 14, 2020.

  1. mattinjersey

    mattinjersey

    Joined:
    Dec 3, 2016
    Posts:
    42
    I created an ECS object with 4 children, cubes and spheres.
    I put convert to Entity on the main Game Object (parent).
    On each object, I put physics shape and physics body.
    When I dropped it with gravity, it hit the ground and flew apart.
    How will I keep these together as a single object.
     
    symbicc likes this.
  2. WAYNGames

    WAYNGames

    Joined:
    Mar 16, 2019
    Posts:
    992
    put the physics body on the parent, the shape will be componded on it and it should retain it's "shape"
     
    mattinjersey and JakHussain like this.