~~NOTOC~~ <=[[4rpl:start| Index]] \\ <=[[4rpl:start#math_utility| Math Utility]] ====== MoveTowards ====== MoveTowards(<-current <-target <-maxDistance) ->result ===== Description ===== Calculate a position between the points specified by current and target, moving no farther than the distance specified by maxDistance. Current, target are treated as vector3. MaxDistance is a float. Result is a vector3. ===== Examples ===== MoveTowards(GetUnitPosition(self) <-target 2) ->result <=[[4rpl:start| Index]]