Transform.Translate(Vector3 translation, Space relativeTo = Space.Self)
Moves the transform in the direction and distance of translation.
Parameters:
Name | Type | Description |
---|---|---|
translation | Vector3 | translation |
relativeTo | Space | relativeTo |
Usage
---@type Transform
local transform;
---@type Vector3
local translation;
---@type Space
local relativeTo;
transform.Translate(translation, relativeTo)