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.

Question Is there a way to set continuous collision or do multiple simulation steps per frame?

Discussion in 'Physics for ECS' started by alloystorm, Mar 7, 2023.

  1. alloystorm

    alloystorm

    Joined:
    Jul 25, 2019
    Posts:
    80
    When objects move too fast, they just go through other objects without collision.

    In the old physics system this is easy to do, but I haven't found anything similar in the ECS physics system.
     
  2. JosepMariaPujol

    JosepMariaPujol

    Unity Technologies

    Joined:
    Jun 16, 2021
    Posts:
    84
    Hey @alloystorm, could I ask you if you could zip your project or isolate a separate scene or make a bug report so we could debug it and figure out what is going on behind the scenes? Thank you!
     
  3. alloystorm

    alloystorm

    Joined:
    Jul 25, 2019
    Posts:
    80
    I'm not reporting a bug or anything.

    I'm just asking what's the new way of doing the following things since the documentation is not very detailed in most parts.

    1. Adjusting physics simulation steps, previously you can use Physics.Simulate(delta); to manually step the physics but I can seem to find the equivalent in the ECS Physics system.

    2. Previously you can set collision type of a rigidbody to continuous but is there an equivalent of that in the new system?