I am trying to figure out a way to AddForce to a rigidbody according to its direction of movement (not rotation)
For instance, I have a player rigidbody moving at a speed of 20u/s forward and 5u/s to the right but facing toward the rear. How can I AddForce to his current forward and right direction of travel independent of where his camera (or other controls) are facing?
Thanks.
It worked. Thanks, sorry I cant upvote; I haven't earned enough rep yet. :(
– Lee7But you can mark it as the correct answer ;)
– screenname_takenNice, just did. Again, thanks.
– Lee7