# Create

> Create a PhysicsWorld using the _defaultDefinition.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## Create()

Create a PhysicsWorld using the [\_defaultDefinition](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/defaultdefinition.md).

```csharp
public static PhysicsWorld Create()
```

### Returns

| Type                                                                              | Description        |
| --------------------------------------------------------------------------------- | ------------------ |
| [PhysicsWorld](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld.md) | The created world. |

## Create(PhysicsWorldDefinition)

Create a PhysicsWorld.

```csharp
public static PhysicsWorld Create(PhysicsWorldDefinition definition)
```

### Parameters

**** (\[PhysicsWorldDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition)): The world definition to use.

### Returns

| Type                                                                              | Description        |
| --------------------------------------------------------------------------------- | ------------------ |
| [PhysicsWorld](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld.md) | The created world. |

## Create(Snapshot, PhysicsWorldDefinition)

Creates a new [PhysicsWorld](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld.md) from `snapshot`, using `definition` for the settings a snapshot does not store.

```csharp
public static PhysicsWorld Create(PhysicsWorld.Snapshot snapshot, PhysicsWorldDefinition definition)
```

### Parameters

**** (\[Snapshot]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/snapshot)): A snapshot produced by [PhysicsWorld.CreateSnapshot](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/createsnapshot.md).**** (\[PhysicsWorldDefinition]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition)): The world definition supplying the settings the snapshot does not store.

### Returns

| Type                                                                              | Description                                                                                                                      |
| --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsWorld](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld.md) | The created world restored to the snapshot state, or an invalid world if the snapshot was rejected or no world could be created. |

### Remarks

A snapshot restores the full simulation configuration, so these [PhysicsWorldDefinition](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition.md) properties are taken from `snapshot` and their values in `definition` are ignored: [\_gravity](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/gravity.md), [\_bounceThreshold](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/bouncethreshold.md), [\_contactHitEventThreshold](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/contacthiteventthreshold.md), [\_contactFrequency](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/contactfrequency.md), [\_contactDamping](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/contactdamping.md), [\_contactSpeed](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/contactspeed.md), [\_contactRecycleDistance](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/contactrecycledistance.md), [\_maximumLinearSpeed](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/maximumlinearspeed.md), [\_sleepingAllowed](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/sleepingallowed.md), [\_continuousAllowed](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/continuousallowed.md) and [\_capacity](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/capacity.md). All other `definition` properties are applied normally, for example [\_simulationWorkers](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/simulationworkers.md) and [\_simulationSubSteps](/engine/6000.6/script-reference/unity/u2d/physics/physicsworlddefinition/simulationsubsteps.md). To use a value other than the snapshot's, set the matching property on the returned world after this call. Creating and restoring a world processes the whole image, so this is not intended to be called at high frequency.
