Zoom camera
Posted: Mon Dec 28, 2009 10:43 pm
Hello guy,
I wonder what is necessary for do a real fluid zoom.
For the moment i do
And when the user scroll the wheel mouse i change camera.zoomCamera and it works good.
But it works by yank !
And i wonder if to make a zoom like for example the camera is
Begin : Z = 0
End : Z = 100
To move fluid the camera !
I think i need to create a thread which increase the value of the zoom camera each 0.1s from 0 to 100 for example !
Thank you for help :=)
I wonder what is necessary for do a real fluid zoom.
For the moment i do
Code: Select all
cameraOffset = new Vector3(-camera.getForwardVector().X, 0.9f, -camera.getForwardVector().Z * camera.zoomCamera);
But it works by yank !
And i wonder if to make a zoom like for example the camera is
Begin : Z = 0
End : Z = 100
To move fluid the camera !
I think i need to create a thread which increase the value of the zoom camera each 0.1s from 0 to 100 for example !
Thank you for help :=)