# OverlapSphereCommand

> Create an OverlapSphereCommand.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

## OverlapSphereCommand(Vector3, float, QueryParameters)

Create an OverlapSphereCommand.

```csharp
public OverlapSphereCommand(Vector3 point, float radius, QueryParameters queryParameters)
```

### Parameters

**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The center of the sphere.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The radius of the sphere.**** (\[QueryParameters]\(/engine/6000.7/script-reference/unityengine/queryparameters)): Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.

### Remarks

This query is run in the default physics scene.

## OverlapSphereCommand(PhysicsScene, Vector3, float, QueryParameters)

Create an OverlapSphereCommand.

```csharp
public OverlapSphereCommand(PhysicsScene physicsScene, Vector3 point, float radius, QueryParameters queryParameters)
```

### Parameters

**** (\[PhysicsScene]\(/engine/6000.7/script-reference/unityengine/physicsscene)): The physics scene to run the overlap sphere query in.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): The center of the sphere.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The radius of the sphere.**** (\[QueryParameters]\(/engine/6000.7/script-reference/unityengine/queryparameters)): Structure for specifying additional parameters for a batch query such as layer mask or hit triggers.
