Restrict Dragging of 3D Object

Q&A about the latest versions
Post Reply
NishantA23
Posts: 2
Joined: Mon May 17, 2021 10:51 am

Mon May 17, 2021 11:08 am

Hello,

I want to make an experience where I will be able to draw polygon hotspots on a particular column and row. Here, I want to restrict the user from dragging the model or else the polygons will disappear if I haven't added them to every row and column out there. Then, I am planning to add a button in the skin where, on click, it'll take the user to the specific row and column where polygon hotspots are visible.

The problem here is that I want to restrict the user from dragging to other row/columns. Is it possible to restrict the drag aspects of object, where users can only rotate the 3D object on click of the button ?

I hope you've understood what the problem here is.

Thank you.
User avatar
Hopki
Gnome
Posts: 11457
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Tue May 18, 2021 5:43 pm

Hi,
You can cover the skin with a transparent rectangle, this will stop any mouse interaction with the object.
You can then hide and show this to restrict mouse access.
Another thought would be to use different view states, one state has no hotspots the other does, but this would be quite wasteful as you would need the images twice.
Regards,
Hopki
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/
NishantA23
Posts: 2
Joined: Mon May 17, 2021 10:51 am

Sat May 22, 2021 10:47 am

Hello,

If I add the transparent rectangle, I would not be able to click on my hotspots as well, right ?

Imagine that on column 20 I have hotspots and I don't want the user to drag with mouse on this frame. Here, since the hotspot needs interaction, the transparent rectangle will block it as it will not allow any mouse activity. Is there something like Z-index where hotspots can be interacted and column no 20 is also not draggable ?

Thank you.
Post Reply