I am struggling to figure out how to calculate the heading for a projectile, i.e. in .shoot or setArrowHeading, between two entities.
For example, if I have entities A and B, and I want a projectile to fire from A to B but want to ignore the facing, I had thought it would have been simple enough to do ...
x = target.getX() - firer.getX()
... for x, y and z. This seems to fire it in weird and wonderful directions.
After much Googling, it is still not clear to me what I should be passing into shoot for pX, pY and pZ.
Any tips or suggestions would be really appreciated.