You are not logged in.

1

Thursday, June 1st 2017, 12:33am

Gyro v2 in 1.19 pr19 does not respect limitview restrictions

Hi again

I'm trying to do a limitview to restrict to horizontal panning only, so far works great until I enable Gyro v2 which does both ath / atv panning regardless of settings. Not sure if there's any additional settings I need to set up or Gyro plugin does not support limitviews. I could make something custom but was wondering if anybody knew something.

Thank you

2

Tuesday, June 6th 2017, 3:27pm

Hi,

the gyro plugin doesn't support limiting the viewing range.

Here a hacky solution that might work (by setting the limitview setting after enabling the gyro), but that's not a really supported case and the results might not be good due the absolute tracking by the gyro itself and the afterwards limiting by the viewer:

Source code

1
2
3
4
5
6
<plugin name="gyro2"
      	...
      	camroll="false"
      	onenable="set(view.limitview, range);"
      	...
      	/>


Best regards,
Klaus