I am totally new to ActionScript as well as Away3D - so pardon me if
my questions sounds silly. I am learning this from the latest book
Flash in 3D.
I am trying to rotate my model by changing the panAngle and tiltAngle
of the HoverCamera3D. Eventually my purpose is to use mouse to rotate
the model in 3d. This is how I am doing this:
override protected function CreateCamera():void
{
m_pHoverCamera = new HoverCamera3D();
m_pHoverCamera.distance = 2000;
m_pHoverCamera.tiltAngle = 0;
m_pHoverCamera.panAngle = 0;
m_pHoverCamera.steps = 0;
m_pHoverCamera.yfactor = 1;
m_pHoverCamera.wrapPanAngle = true;
m_pView.camera = m_pHoverCamera;
}
protected override function onEnterFrame(ev : Event) : void
{
m_pHoverCamera.tiltAngle += 0.5;
//m_pHoverCamera.panAngle += 0.5;
trace(m_pHoverCamera.tiltAngle,
m_pHoverCamera.panAngle);
m_pHoverCamera.hover();
m_pView.render();
}
What I am observing is that the tiltAngle does not increase beyond
value 90 - I think its range is -90 to 90. The panAngle on the other
hand behaves as expected. The question is how can I effectively rotate
the model freely in 3D space?
Any comments is highly appreciated. Thank you!