Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Vectors, velocities and prediction......
Vectors, velocities and prediction......
2002-12-31, 9:01 PM #1
I'm not quite sure how I would "convert" a velocity into a position so I can properly create a thing along the moving things velocity.

If the thing was moving backwards like this:

Code:
the things path   the co-ords in view  
\/ \/             \/\/
                   z
                  y+y
                   z
__
  \
   \
    |
    | 


How can I accurately "predict" the things path so I can create a thing "ahead" of it?
-Hell Raiser
2002-12-31, 9:23 PM #2
Huh? Your picture is confussing me greatly.

Do you just want to find the position of a thing traveling at a constant velocity in x amounts of time in the future?
Team Battle.
2002-12-31, 10:14 PM #3
ok, basically, a thing is given a set velocity once, so they go flying backwards and then downwards. (when gravity has more affect)

Basically I wanna find out where the thing will be in.... 0.2 seconds.
-Hell Raiser
2002-12-31, 10:50 PM #4
Hmm, I think this is what you want. I'm not sure.

Code:
moved=VectorScale(GetThingVel(target), 0.2);
meetpos=VectorAdd(GetThingPos(target), moved);


Get's the positon of where the thing will be in 0.2 seconds, based off it's velocity.

↑ Up to the top!