Hotspot Target - Random angle

Q&A about the latest versions
Post Reply
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Is it possible to set a target on a point hotspot to random? e.g.

Code: Select all

0.0/0.0/{rand}
?
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

The only way I can think of using Pano2VR is to have a timer counting and updating a numbered variable counting 0 ~359 then back to 0.
Then use this when opening a node.
This would then give a random direction.
Please see the attached project.
Regards,
Attachments
random.zip
(30.96 KiB) Downloaded 82 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Hopki,

I achieved this with JavaScript. When the hotspot is clicked / tapped

Code: Select all

javascript:myfunction(me.hotspot)
is run. Within the function I generated a random number between 0 & 359 then created the url for the node with viewing parameters.
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply