self:set_rotation
Client
Sets the local rotation of the area in degrees
Syntax
local status = self:set_rotation(
euler_degrees
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | euler_degrees | Rotation to apply in degrees as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.area.create()
entity:set_rotation({0, 90, 0})