View Full Version : limiting rotation to single axis
jasonkeene
12-26-2007, 03:21 PM
I just briefly read through the documentation and I couldn't find an option to limit the rotation of the camera to just a single axis. I basically don't want the view to be able to look at the top/bottom of the cube.
I'm gonna re-read the docs but I was just checking to see if this is possible.
Thanks,
Jason Keene
CEA Marketing Group
keene@ceamarketing.com
jasonkeene
12-26-2007, 03:24 PM
ha.. look before you leap..
i had so.addVariable("disableTilt","1"); writen as so.addParam("disableTilt","1");
thanks anyways! great product!
PauloGGPX
12-26-2007, 06:04 PM
Glad to see you solved your problem ;)
You could also use the limits plug in, it's more versatile as you can determine the exact angle you don't want the users to exceed, and it can be asymmetrical, limit more on the bottom half of the panorama than the top half.
izoneguy
12-27-2007, 09:11 PM
I need to do just that. Anyone have some code for limits plug-in?
PauloGGPX
12-27-2007, 10:12 PM
Hi izoneguy,
directly from the limits plugin documentation :P
<?xml version="1.0" ?>
<panorama>
<parameters>
layer_3 = limits.swf
</parameters>
<limits>
pan_min = -40
pan_max = 40
tilt_min = -10
tilt_max = 80
</limits>
</panorama>
Just one thing you must give the min and max values of either pan or tilt, it wont work if you give just the min value.
For instance I usually use this:
<limits>
pan_min =
pan_max =
tilt_min = -70
tilt_max = 130
</limits>
this will hide the nadir but not the zenith ;)
Hope it helps :)
izoneguy
12-27-2007, 10:28 PM
Hey Thanks,
I know the documentation is there it is just hard
to find sometimes.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.