self:set_rotation

Client

Sets the local rotation of the animatable body in degrees


Syntax

local status = self:set_rotation(
    euler_degrees
)

Parameters

TypeNameDescription
vector3euler_degreesRotation to apply in degrees as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local rotation of a animatable body
local entity = physics.animatable.create()

entity:set_rotation({0, 90, 0})

On this page