# sm.physics.multicast

Performs multiple sphere and/or raycasts given a table of parameters.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.multicast( casts, world? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.physics.md#multicast)

Type can be "sphere" or "ray". Radius is ignored for rays.

ignoreUuids option is a table of uuids {[Uuid](../Game-Script-Environment/Userdata/Uuid.md), ...} of [Shape](../Game-Script-Environment/Userdata/Shape.md), [Harvestable](../Game-Script-Environment/Userdata/Harvestable.md) or [Character](../Game-Script-Environment/Userdata/Character.md) type to be ignored.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `casts` | table | Table of casts. \{ type=string, startPoint=[Vec3](../Game-Script-Environment/Userdata/Vec3.md), endPoint=[Vec3](../Game-Script-Environment/Userdata/Vec3.md), radius=number, mask=[sm.physics.filter](../Game-Script-Environment/Static-Functions/sm.physics.md#filter), ignoreUuids=table \} |
| `world` *(optional)* | [World](../Game-Script-Environment/Userdata/World.md) | The world to perform the cast in. (Optional) |

**Returns:**

| Type | Description |
| --- | --- |
| table | Array of pairs of boolean and [RaycastResult](../Game-Script-Environment/Userdata/RaycastResult.md). \{\{boolean, [RaycastResult](../Game-Script-Environment/Userdata/RaycastResult.md)\}, ..\} |
