How do I get the X between a & b?
a-----------------X----------------b
a----X-----b
Tried: a.X + b.X / 2
That's correct if X is always exactly in the middle of a and b.
You forgot the parenthesis.
(A.x+b.x)/2
Develop games in your browser. Powerful, performant & highly capable.
Ohh, forgot about the parenthesis.