Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question How to rollback physics world?

Discussion in 'Physics for ECS' started by VincentSai1984, Sep 7, 2020.

  1. VincentSai1984

    VincentSai1984

    Joined:
    Sep 7, 2020
    Posts:
    9
    I had clone physics world from BuildPhysicsWorld.PhysicsWorld, assign it back to BuildPhysicsWorld.PhysicsWorld after few step and nothing change.
    Do I also need to clone Translation, Rotation data for rollback?
     
  2. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    It's best you clone the ECS data, not physics runtime data, since physics runtime data is created based on ECS data each frame in BuildPhysicsWorld, so it probably gets overwritten in your case.
     
    Opeth001 likes this.