Skip to content
FutureBlitz

    Install

    Import std.math.vector

    MoveTowards

    std.math.vector

    function

    Public Function MoveTowards(current: Vec2, target: Vec2, maxDistance: Float): Vec2

    Current moved toward target by maxDistance, or to target when it's no further, worked out in Doubles.

    std/math/vector.fb, line 477

    function

    Public Function MoveTowards(current: Vec3, target: Vec3, maxDistance: Float): Vec3

    Current moved toward target by maxDistance, or to target when it's no further, worked out in Doubles.

    std/math/vector.fb, line 488

    Report an issue with this page or with FutureBlitz on GitHub.