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.
Develop games in your browser. Powerful, performant & highly capable.
You forgot the parenthesis.
(A.x+b.x)/2
Ohh, forgot about the parenthesis.