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.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static PhysicsWorld.PhysicsGroup CreateGroup()
Returns
Type | Description |
|---|---|
| PhysicsGroup | The new group. |
Remarks
See PhysicsWorld.PhysicsGroup and _physicsGroup.