Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
newPosition = currentPosition + speed*deltaTime*normalDirection
Here's some pseudocode for you. Because the engine is not specified - that's just the way it is.
Although on the unit (I smell it) - in principle, the code will hardly change. And the algorithm is 100%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question