Here's a link:
Here we see an example of a legal gather and a shot. The offensive player gathers the ball with his right foot on the ground and is allowed two steps in any direction. Rule 4 Section III – The Gather and Rule 10 Section XIII – Traveling (b).
https://www.nbra.net/rules/traveling/
Notice that a.) and b.) deal with traveling rules depending on whether you're set or moving when you receive the ball. There, that was easy. Now go ahead and pretend that's not what you were talking about.