TransformVector in simple terms

Blitz3D Forums/Blitz3D Programming/TransformVector in simple terms

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

jhocking> "if want 900 units ahead then why does velocity matter?"
A< Because having the current x and y location doesn't tell you what direction the entity is moving. Actually I meant vector. X and Y Velocity would give be rate of movement in what direction but I only need really need the direction assuming that the rate of movement is always considerably less than 900.

My alternative at this point is to keep track of the current and last cycles X and Y locations and use that to calculate 900 units out in the direction of movement derived by if the new locations are greater or less than the old locations.

I was hoping that one of the TForm commands would provide this and it appears that TFormedPoint will give me the correct global location if I use it like this.
TFormPoint 0,900,0,Ship1,0
If I understand this correctly it will set TFormedX TFormedY and TFormedZ to the global quardinates of 900 units ahead of my ship.

Your description of what they are for describes it much better than the help files. Thanks.