# CreateGroup()

> Create a new globally unique group. Groups are created from a rolling index, so the first group created has a group index of one and a group index of zero always means no group. Assign the group only to shapes that belong to the same body.

## Definition

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

```csharp
public static PhysicsWorld.PhysicsGroup CreateGroup()
```

### Returns

| Type                                                                                           | Description    |
| ---------------------------------------------------------------------------------------------- | -------------- |
| [PhysicsGroup](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/physicsgroup.md) | The new group. |

### Remarks

See [PhysicsWorld.PhysicsGroup](/engine/6000.7/script-reference/unity/u2d/physics/physicsworld/physicsgroup.md) and [\_physicsGroup](/engine/6000.7/script-reference/unity/u2d/physics/physicsshape/physicsgroup.md).
