Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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

    vectorized-runner

    Joined:
    Jan 22, 2018
    Posts:
    396
    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
    calling
    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?