# sm.physics.applyTorque

Applies a torque impulse to a [Body](../Game-Script-Environment/Userdata/Body.md), changing its angular velocity immediately. The torque is applied along the body's center of mass, making it rotate.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.physics.applyTorque( target, torque, worldSpace? )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `target` | [Body](../Game-Script-Environment/Userdata/Body.md) | The object on which the torque is exerted on. |
| `torque` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The direction and strength of the torque. |
| `worldSpace` *(optional)* | boolean | Whether the torque is applied in world space coordinates. (Defaults to local rotation) |
