# Maximum(WorldProfile, WorldProfile)

> Find the maximum values the specified world profiles.

## Definition

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

```csharp
public static PhysicsWorld.WorldProfile Maximum(PhysicsWorld.WorldProfile profileA, PhysicsWorld.WorldProfile profileB)
```

### Parameters

**** (\[WorldProfile]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/worldprofile)): The first world profile to find the maximum of.**** (\[WorldProfile]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/worldprofile)): The second world profile to find the maximum of.

### Returns

| Type                                                                                           | Description                                 |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------- |
| [WorldProfile](/engine/6000.6/script-reference/unity/u2d/physics/physicsworld/worldprofile.md) | The maximum values from both world profile. |
