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

Resolved Netcode and Custom Simulations

Discussion in 'DOTS Dev Blitz Day 2022 - Q&A' started by Kmsxkuse, Dec 7, 2022.

  1. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    306
    I am currently implementing a networked eulerian fluid simulation on the server and was wondering where I should put the relevant systems.

    Should I place it at root SimulationSystemGroup or inside the predicted simulation group?
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    306
    It depends entirely on whether or not you want the clients to be able to predict changes to the fluid simulation.

    I.e. Do clients interact in realtime with the sim? Then yes, you'd likely want to predict it (although it sounds quite expensive).

    Or are clients observers? Then no, have it interpolate.
     
    Kmsxkuse likes this.