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

Question Using Physics methods if the System is not running on FixedUpdate?

Discussion in 'Physics for ECS' started by vectorized-runner, Jul 24, 2022.

  1. vectorized-runner


    Jan 22, 2018
    My system is running in SimulationSystemGroup, I don't want to run in FixedUpdate because it's mostly doing decision-making calculations, and once in a while it needs to do an OverlapSphere.

    I'm confused about the Physics dependencies in the 0.51 version, the
    RegisterPhysicsRuntimeSystemReadOnly on the System's OnStartRunning didn't work for me, but calling
    BuildPhysicsWorld.AddInputDependencyToComplete after scheduling my job seems to work, at least doesn't generate errors at runtime.

    I still don't know if I'm doing this properly though, can someone give me a brief on the dependencies in the new version? Do I have to run my System on FixedUpdate?