| [news.eclipse.gef3d] Re: Specifying Camera Location Programmatically... |
On 2009-06-01 12:50:50 -0700, Jens v.P. <developer@xxxxxxxxx> said:
Hi Miles,
On 2009-06-01 21:01:06 +0200, Miles Parker <milesparker@xxxxxxxxx> said:Can it be done? I can't see anywhere in CameraTool API to do this..
Yes, of course. In the default version, "ESC" is a key for reseting the camera, and other keys can be similarly programmed in subclasses of CameraTool. Instead of reset, you have to call org.eclipse.draw3d.camera.ICamera.lookAt(IVector3f, IVector3f).
Cheers,
Jens