self:set_global_rotation

Client

Sets the global rotation of the collision shape in degrees


Syntax

local status = self:set_global_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 global rotation of a collision shape
local entity = physics.collision_shape.create()

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

On this page