Skip to content

Api > Vector4 > MoveTowards()


Vector4.MoveTowards(Vector4 current, Vector4 target, number maxDistanceDelta)⚓︎

Moves a point current towards target.

Parameters:⚓︎

Name Type Description
current Vector4 current
target Vector4 target
maxDistanceDelta number Max Distance Delta

Usage⚓︎

---@type Vector4
local current;

---@type Vector4
local target;

---@type number
local maxDistanceDelta;


Vector4:MoveTowards(current, target, maxDistanceDelta)