How can I derive force vectors from velocity vectors?

Posted by PixelRouter on Game Development See other posts from Game Development or by PixelRouter
Published on 2012-12-07T16:25:40Z Indexed on 2012/12/07 17:39 UTC
Read the original article Hit count: 154

Filed under:
|

I'm making a 2d shooter ala Geometry Wars. I've got my own simple physics at work driving the background grid and all my entities. To move anything in the world I apply a Vector2d force to it. The 'engine' calculates the resulting acceleration and therefore the velocity.

I am trying to port some code I found which implements the classic 'Boids' flocking algorithm, but the code I have works by calculating the Boids' velocities directly, so If i use it as is, it bypasses my physics engine. How I can translate the velocity vectors into force vectors that I can apply to the Boids and which will result in the proper velocities via my physics engine.

© Game Development or respective owner

Related posts about XNA

Related posts about physics