Space
The coordinate space in which to operate. Unity Space.
Elements
Element | Description |
---|---|
Space.Self | Applies transformation relative to the local coordinate system. |
Space.World | Applies transformation relative to the world coordinate system. |
Example
do
local script = LUA.script;
local transform = script.gameObject.transform;
function script.Start()
transform.Rotate(Vector3.up * m_Speed * Time.deltaTime, Space.World);
end
end