self:get_rotation
Client
Retrieves the local rotation of the collision shape in degrees
Syntax
local rotation = self:get_rotation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | rotation | Current local rotation in degrees as {x, y, z} |
Examples
local entity = physics.collision_shape.create()
local rotation = entity:get_rotation()
core.engine.print("info", "Collision shape rotation:", util.table.unpack(rotation))