ramar
25-08-2008 15:30:22
Hi people. I read some threads but i cant solve my problem. I want to bind my camera to a sphere (that fall, rotate and so on). I created a childNode from the sphere one and then i attached mycamera into the cameranode but the camera goes crazy because it rotates with the sphere. So i tried this code:
cameraNode = sphereNode->createChildSceneNode ("mCam",Vector3::ZERO,Quaternion::ZERO );
in this way the camera only follows the sphere and doesn't rotate. This could be fine but from this point i cant absolutly change camera orientation neithwer pitch/yaw/roll. Ii'd like to adjust direction and i want the camera rotate around the sphere with mouse control. How can i do it?
Cheers
cameraNode = sphereNode->createChildSceneNode ("mCam",Vector3::ZERO,Quaternion::ZERO );
in this way the camera only follows the sphere and doesn't rotate. This could be fine but from this point i cant absolutly change camera orientation neithwer pitch/yaw/roll. Ii'd like to adjust direction and i want the camera rotate around the sphere with mouse control. How can i do it?
Cheers