Camera used in every CocosNode. Useful to look at the object from different views. The OpenGL gluLookAt() function is used to locate the camera.
If the object is transformed by any of the scale, rotation or position attributes, then they will override the camera.
Returns the best distance for the camera for the current window size
cocos2d uses a Filed Of View (fov) of 60
Sets the camera using gluLookAt using its eye, center and up_vector
- force : bool
whether or not the camera will be located even if it is not dirty
Restore the camera to the initial position and sets it’s
dirtyattribute in False and
If you use the camera, for a while and you want to stop using it call this method.
Center of the camera in x,y,z coordinates
Eye of the camera in x,y,z coordinates
Up vector of the camera in x,y,z coordinates