Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved ECS physics simulation: graphics not updating / resetting after EOS

Discussion in 'Physics for ECS' started by RoHofmann, May 24, 2023.

  1. RoHofmann

    RoHofmann

    Joined:
    Aug 15, 2017
    Posts:
    15
    Hi,

    I have the following setup in Unity2022.2.20 / Entities 1.0.8:
    I created a sub scene and added a few 3d Cubes to it. I also attached a Rigidbody to each of them to make them follow gravity. There are two things I do not understand:

    1) When I start the simulation, I can observe the cubes falling via their LocalToWorld values. However, the rendered cubes, do not move - they stay frozen in place. When I move such cubes via my own systems, the rendered cubes follow exactly their LocalToWorld position.
    2) When I exit the simulation, now the cubes have been moved to the end point of the previous simulation, i.e I would have to manually place them back to where they were when I want to re-run the simulation.

    Sorry, if these are super basic questions, I couldn't find answers via google.
     
  2. RoHofmann

    RoHofmann

    Joined:
    Aug 15, 2017
    Posts:
    15
    Found the issue: I had to explicity install the physics package as well. That solved both issues.
     
    JosepMariaPujol likes this.