actionscript 3 - Away3d move camera in viewing direction? -


i have away3d camera looking @ object aerial view.

now, want closer object rotate mouse wheel.

i did using camera lens adjusting binocular , not getting closer object,

private function onmousewheelevent(e:mouseevent):void {       perspectivelens(view.camera.lens).fieldofview -= e.delta;          } 

is there easy solution or have write such controller of own?

i did using camera.forwardvector so,

private function onmousewheelevent(e:mouseevent):void {     view.camera.x = view.camera.x + (e.delta * view.camera.forwardvector.x);     view.camera.y = view.camera.y + (e.delta * view.camera.forwardvector.y);     view.camera.z = view.camera.z + (e.delta * view.camera.forwardvector.z); } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -