-
Notifications
You must be signed in to change notification settings - Fork 9
Transform
Matías Hermosilla edited this page Jun 2, 2017
·
7 revisions
local Transform = require("shadows.Transform")
Transform transform = Transform:new()
Description: Creates a transform.
local transform = Transform:new()
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.