Skip to content

Transform

Matías Hermosilla edited this page Jun 2, 2017 · 7 revisions

The 'Transform' Object

Importing

local Transform = require("shadows.Transform")

Functions

Transform transform = Transform:new()
Description: Creates a transform.

local transform = Transform:new()

Methods

Transform:SetParent(Transform transform)
Description: Makes the coordinate system of a transform local to another.

Transform transform = Transform:GetParent()
Description: Returns the parent transform.

Transform:SetLocalRotation(number Rotation) Description: Sets the local rotation of the transform in degrees.

number rotation = Transform:GetLocalRotation() Description: Returns the local rotation of the transform in degrees.

number radians = Transform:GetLocalRadians()
Description: Returns the local rotation of the transform in radians.

Clone this wiki locally