[futurebasic] Re: [FB] Re: Physics...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2000 : Group Archive : Group : All Groups

From: macbse.com <ashley@...>
Date: Thu, 23 Nov 00 23:24:23 +1100
>You have a vector problem.
>
>Someone will supply the necessary math no doubt, but you will basically be
>using the angles and previous velocities to compute new vectors, and a time
>parameter may be needed to measure new thrust input for negating.


Peter,
  There are two methods for adding vectors that I know of.

  The first is a geometrical method. You think of the each vector as a 
straight line between two points (x1,y1) and (x2,y2) and then you use 
coordinate geometry to calculate the result obtained when you move the 
"tail" (x1,y1) of one to the "tip" (x2,y2) of the other and the new 
vector is the line from the "tail" of the first to the "tip" of the 
second. If you can wait a little while I can probably make some functions 
for this one.

  The second way is to use what are called matricies, although I have 
never seen this done, I am currently reading a book on how to do this 
(another 1000 page book to read). I could probably provide functions for 
this but it would take 3 to 4 weeks to get these ones done.

  Anyway if nobody else already has the code to do this (in which case 
could they post it somewhere so that I can get it too) and you don't want 
to program it yourself send me an email off the list and I'll see what I 
can do, if not I could probably write up some algorithims or a text 
description for you.

  Happy vectoring,

  Regards,



  Ashley ~)~

===================================================================
Ashley Butterworth
Email: Ashley@...
===================================================================