self:apply_torque_impulse
Client
Applies an instantaneous rotational impulse to the rigid body
Syntax
local status = self:apply_torque_impulse(
impulse
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | impulse | Torque impulse to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.rigid.create()
entity:apply_torque_impulse({0, 1, 0})