So here's my scenario: I have a spaceship game, each spaceship can target another ship and fire torpedoes and the torpedo needs a directional vector to travel along, the vector needs to be independent of the distance.
I'm looking to create a method that returns a D3DXVECTOR3
constructed like so:
D3DXVECTOR3 TargetVector(D3DXVECTOR3 *target, D3DXVECTOR3 *firer)
Has anyone got experience in this matter? It would be great if anyone could even point me towards any decent, easy to understand D3D mathematics tutorials as all I have found so far is based on rendering images rather than mathematical equations.
Thanks!
-Ryan