# sm.debris.createDebris

Create visual debris of a [shape](../Game-Script-Environment/Userdata/Shape.md) from its [uuid](../Game-Script-Environment/Userdata/Uuid.md), that collides with world objects but does not have an impact on them.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.debris.createDebris(
    uuid,
    position,
    rotation,
    velocity?,
    angularVelocity?,
    color?,
    timeToLive?,
    gravity?,
    friction?,
    linearDamping?,
    angularDamping?,
    time?
)
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `uuid` | [Uuid](../Game-Script-Environment/Userdata/Uuid.md) | The uuid of the shape. |
| `position` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The position. |
| `rotation` | [Quat](../Game-Script-Environment/Userdata/Quat.md) | The rotation. |
| `velocity` *(optional)* | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The linear velocity. (Defaults to zero) |
| `angularVelocity` *(optional)* | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The angular velocity in radians per second around the axes (x,y,z). (Defaults to zero) |
| `color` *(optional)* | [Color](../Game-Script-Environment/Userdata/Color.md) | The color. (Defaults to the shape's default color) |
| `timeToLive` *(optional)* | number | Time to live. (Defaults to 10) |
| `gravity` *(optional)* | number | Gravity vector. (Defaults to \{ 0,0,-10 \}) |
| `friction` *(optional)* | number | Amount of friction. (Defaults to 1) |
| `linearDamping` *(optional)* | number | Amount of linear damping. (Defaults to 0.3) |
| `angularDamping` *(optional)* | number | Amount of angular damping. (Defaults to 0.3) |
| `time` *(optional)* | number | The time the debris will be simulated before disappearing. (Defaults to 10 seconds) |
