# Simulate

> Simulate the world. The world should must have its PhysicsWorld.simulationType set to PhysicsWorld.SimulationType.Script for this to work.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## Simulate(float)

Simulate the world. The world should must have its [PhysicsWorld.simulationType](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/simulationtype-1.md) set to [PhysicsWorld.SimulationType.Script](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/simulationtype/script.md) for this to work.

```csharp
public void Simulate(float deltaTime)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The amount of time to forward simulate the world.

## Simulate(ReadOnlySpan\<PhysicsWorld>, float)

Simulate a batch of worlds. The worlds can be simulated concurrently depending on the setting of [PhysicsLowLevelSettings2D.concurrentSimulations](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicslowlevelsettings2d/concurrentsimulations.md). The worlds in the batch must have their [PhysicsWorld.simulationType](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/simulationtype-1.md) set to [PhysicsWorld.SimulationType.Script](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsworld/simulationtype/script.md).

```csharp
public static void Simulate(ReadOnlySpan<PhysicsWorld> worlds, float deltaTime)
```

### Parameters

**** (\[ReadOnlySpan\<PhysicsWorld>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The worlds to forward simulate.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The amount of time to forward simulate the world.
