Call an action after moving 90 degrees to the left, etc...

  • Hello all!!!

    Thank you very much in advance for helping.

    I'm working in a virtual tour which involves a 'how to navigate thing' at the very beginning.
    What I'd like to to do is to call an action after the user moved the pano 90 degrees to the left, then another action when he moved it 90 degrees to the right, then 90 degrees up and 90 degrees down.

    I don't think using <events> is the best way to go. Any ideas?

    Cheers!

  • "I don't think using <events> is the best way to go. Any ideas?"

    Then you may as well give up right there.

    etc..

  • Thank you for your suggestion Sacha. Always useful.

    I'll give it a go and I'll let you know how's going.

    The reason why I don't want to use events is because I like to have only a big fat xml file, and I don't want to have an event (in this case onviewchanged) in all the scenes.
    But now that I think better, there must be a way to put an event just in the first pano only. I'll take a look into the docu.

    Cheers

  • It works beautifully.

    I adapted the code a little bit:



    Regarding using an 'event' action in one scene only, that was easy. I just had to put it inside the 'scene' tags.

    Thank you!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!