[Papervision3D] orbiting around plane
tim.knip at gmail.com
Thu Jun 19 18:29:35 PDT 2008
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.
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
> www.akbars.net/basic.swf (you'll need to drag the mouse for the plane to
> show up)
> 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?
> Papervision3D mailing list
> Papervision3D at osflash.org
More information about the Papervision3D