Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
View all activity pages
It looks like you have Position and Direction as vectors and Velocity as a scalar?
If so just change Velocity into a vector as well and then do something like this:
Force = Direction * Power