We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

First person camera on mobiles

Home Forums Puzzles First person camera on mobiles

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #39188
    AwaRyoAwaRyo
    Customer

    Hi,

    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.

    Attachments:
    You must be logged in to view attached files.
    #39190

    Hi,

    you can use the every frame and elapsed puzzles to calculate the distance to move your object according to user input

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #39191
    AwaRyoAwaRyo
    Customer

    Hi Yuri,

    Thanks for a suggestion.
    I will try it!

    #39192
    AwaRyoAwaRyo
    Customer

    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!

    #39288

    Hi,

    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.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #39311
    AwaRyoAwaRyo
    Customer

    Hi Yuri,

    Thanks a lot!
    I did not realize there was that kind of a simple solution..
    I will try it.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.