# Script

> Use this enumeration to instruct Unity to execute the physics simulation manually when you call Physics.Simulate.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
Script = 2
```

### Remarks

Executing the physics simulation in a script provides full control over when the simulation runs and the duration of simulation. Use this mode to emulate both [SimulationMode.FixedUpdate](/engine/6000.0/script-reference/unityengine/simulationmode/fixedupdate.md) and [SimulationMode.Update](/engine/6000.0/script-reference/unityengine/simulationmode/update.md), and any other custom time interval.

The stability and determinism of the simulation depends on when Unity executes the simulation. If the simulation runs each frame, then it is always synchronized, including contacts between [Collider](/engine/6000.0/script-reference/unityengine/collider.md)s. This means that [Rigidbody](/engine/6000.0/script-reference/unityengine/rigidbody.md) interpolation is not required.

Additional Resources: [Physics.simulationMode](/engine/6000.0/script-reference/unityengine/physics/simulationmode.md).
