16
General / Re: String to movement help
« on: August 01, 2014, 02:18:40 pm »QuoteShouldn't this be a "if" rather than a "while"?while(toTravel > 0.f && !route.empty())
No, it is a "while".
The player movement can be split into several parts in one frame: if the player is close enough to the m_nextPosition at the beginning of the frame or if the distance to travel is big enough (long frameTime or high speed).