User Tools

Site Tools


ixe:irpl:math_utility:movetowards

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
ixe/irpl/math_utility/movetowards.txt · Last modified: 2025/01/20 09:57 by 127.0.0.1