Skip to contents

Vector3 Move Towards

Usage

vector3_move_towards(v, target, max_distance)

Arguments

v

A numeric vector of length 3.

target

A numeric vector of length 3.

max_distance

A number.

Value

A numeric vector of length 3

Examples

vector3_move_towards(c(0, 0, 0), c(0, 0, 0), 0.0)
#> x y z 
#> 0 0 0