I have an enemy and a weapon object.I want to get the direction of the bullet for hitting the enemy.For that, I did like this:
SimpleVector direction = (enemy.getTransformedCenter().calcSub( weapon.getTransformedCenter()));
or
SimpleVector direction = (enemy.getTranslation().calcSub( weapon.getTranslation()));
or
SimpleVector direction = (enemy.getZAxis().calcSub( weapon.getZAxis()));
Among them, which one I have to use?