self:set_angular_velocity
Client
Sets the angular velocity of the rigid body
Syntax
local status = self:set_angular_velocity(
velocity
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | velocity | Angular velocity 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:set_angular_velocity({0, 1, 0})