Bbpzz / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Camera rotation independent of any other objects. #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a way to make the camera change its look at point automatically or 
make the camera not have a look at point. I want to use the camera for moving 
around and be able to rotate the camera without setting a look at point. Or is 
you could point me in the direction of some information to do the math for the 
look at point based on scene.Camera().position and a distance to look ahead.

Original issue reported on code.google.com by startthe...@gmail.com on 25 Dec 2012 at 2:38

GoogleCodeExporter commented 8 years ago
i think you can calculate look at point base on center point
look.x = center.x + sin( angle ) * R
look.z = center.z + cos( angle ) * R

this will allow to rotate around Y

PS. might somehow otherwise

Original comment by andrei.p...@gmail.com on 28 Jan 2013 at 5:08