[Papervision3D] orbiting around plane
Tim Knip
tim.knip at gmail.com
Thu Jun 19 18:29:35 PDT 2008
Hi,
I notice :
var theta : Number = (Math.PI/800)*delta_x;
Maybe better to make theta global and do:
theta += (Math.PI/180) * (event.stageX - offsetX);
At least works for me.
hth!
Tim
2008/6/20 col. cathcart <col.cathcart at gmail.com>:
> I've spent a few days trying to get this to work
> the orbit function works fine, but the camera doesn't seem to be angled
> correctly
>
> www.akbars.net/basic.swf (you'll need to drag the mouse for the plane to
> show up)
> www.akbars.net/basic.fla
> www.akbars.net/basic.as
>
> by tracing the camera positions i can see that the camera is positioned
> properly in a circle around the canvas, yet it never seems to be angled
> towards the plane - it just seems to angle on one axis - thus the wobble.
> in the demo i've fixed the height (z-value) of the camera to debug the angle
> on its own...
>
> the lookAt functions seems to be okay to me... any suggestions?
>
> thanks
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
More information about the Papervision3D
mailing list