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.

Problem : I want only to rotate the camera on mobil but it is also a click event

Home Forums General Questions Problem : I want only to rotate the camera on mobil but it is also a click event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42595
    Jakob Kolmanic
    Participant

    Hello,
    I have a question regarding interaction with a mobile device. I have a camera that can rotate around a fixed point and several objects that can be clicked. My problem is that when I rotate the camera on the mobile device with one finger, it often happens that by rotating with the one finger also unintentionally clicks on an object and activates it.
    Does anyone here maybe have the same problem or know a solution for it?

    Thanks a lot!!!

    #42624
    xeon
    Customer

    Hi there,

    I have run into similar issues when the scene is filled with clickable objects. When it becomes problematic I enable double click/tap in the optional onclick.

    Alternatively if thats not practical…you can create some logic around the cameras movement.

    Basically if camera is moving ignore clicks.

    The real trick is discriminating a starting click vs a click on the object. For this I just add a short-timer to the onlick and validate the camera did not move during that small time. If the camera is in the same position…then continue with the onclick functions.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

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