Fastest vector away from target


How will I be able to calculate the fastest vector away from a target? Usually it would mean pointing away from the target in the direction of the first object, but I haven’t managed to make it work. Any help would be appreciated.

Basic vector maths is a prerequisite to successful game programming…(also trigonometry)…you should learn it.


transform.position - target.position would give you a vector pointing directly aways from the target.