# sm.body.createBody

Create a new body

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.body.createBody( position, rotation?, isDynamic? )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The body's world position. |
| `rotation` *(optional)* | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The body's world rotation. (Defaults to [sm.quat.identity](../Game-Script-Environment/Static-Functions/sm.quat.md#identity)) |
| `isDynamic` *(optional)* | boolean | Set true if the body is dynamic or false if the body is static. (Defaults to true) |

**Returns:**

| Type | Description |
| --- | --- |
| [Body](../Game-Script-Environment/Userdata/Body.md) | The created body |
