Skip to main content

Transform.Translate(Vector3 translation, Space relativeTo = Space.Self)

Moves the transform in the direction and distance of translation.

Parameters:

NameTypeDescription
translationVector3translation
relativeToSpacerelativeTo

Usage

---@type Transform
local transform;

---@type Vector3
local translation;

---@type Space
local relativeTo;


transform.Translate(translation, relativeTo)