I am trying to implement first person camera navigation for mobile devices. With “change local transform” puzzles, I implemented a basic function to go forward and backward puzzles. But only if the number is 1 and tap arrows button, camera moves for 1 step further. I would like to move a camera more smoothly.
Would you give me any idea to implement that?
Attached a screenshot image for very simple navigation test scene.
Tried several way and I can not make camera stop…
When camera starts moving by clicking button, there is no way to stop camera within my knowledge.
I would like to have some advice how to stop “every frame do” function.
Thanks in advance!
sorry for late response. You can use a variable for this purpose. Set it to “moving” state when you need this, and check it each frame to determine if you need to perform movement. Otherwise set it to “stopped” state.