I want to find the distance between two objects, and I want to add a fraction of the distance to the movement of one. But I want it to know if its -100 distance or +100 and apply accordingly.
How should I do this?
Printable View
I want to find the distance between two objects, and I want to add a fraction of the distance to the movement of one. But I want it to know if its -100 distance or +100 and apply accordingly.
How should I do this?
Record the distance within an Alterable Value before your calculation (the distance() function would be convenient here), then check if it's -100 or +100, and if so you can apply your fraction by adding the divided Alterable Value to your object's movement.