How can i make coordinates get more / less by step?

Viewed 47

When i was scripting, i got in a trouble. I need to make that coordinates in format X, Y, Z was getting more / less by step, like Coordinates i need: 100, -100, 213 Coordinates im on: 5, -3, 5 So each second to X Y Z should be adding or removing 1 coordinate to the required coordinates. (another example because im not sure its fine to understand)

Req. Position: 10, -5, 10
Position right now: 0, -2, 0

Pos changed: 1, -3, 1
Pos changed: 2, -4, 2
Pos changed: 3, -5, 3
Pos changed: 4, -5, 4

and that untill required position

So position will change every second.

0 Answers
Related