You mean this? It is pretty simple, so I am not sure this is what you wanted. This is only for the x dimension, so you would copy it and change it to y if you wanted for both directions. If there are any problems with this, I can try to help.
- Code: Select all
view.x = actor1.x + (actor1.x - actor2.x)/2