> For the complete documentation index, see [llms.txt](https://reflective-roommanager.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reflective-roommanager.gitbook.io/docs/user-manual/physic/simulator/physic-simulator.md).

# Physic Simulator

This class sets up and manages different physics simulators.

### **Members**

* `private Simulator _simulator`:
  * A `_simulator` variable representing the physics simulator used.
* `private bool _isOnlyServer`:
  * Variable that determines whether the physics simulator will only run on the server

### **Methods**

1. ```csharp
   public void SetSimulator(Simulator simulator)
   ```
   * **Parameters:**
     * `simulator`: Physics simulator to be tuned.
   * Sets physics simulator.
   * Calls the `Init` method.
2. ```csharp
   private void Awake()
   ```
   * If you want it to run only on the server and the client is active, disable the component.
   * If the network server is not active, it is disabled.
   * Creates a simulator according to the physics mode specified in the room manager.
   * The physics simulator wake-up process is initiated.
3. ```csharp
   private void FixedUpdate()
   ```
   * It is called in constant step.
   * It returns if the network server is not active.
   * The constant step update of the physics simulator is started.
