|
Returns the location of the camera.
Example A:
double x,y,z;
DWORD camera=STATE_camera_get_default_camera();
STATE_camera_get_location(camera, &x, &y, &z);
Example B:
Note that instead of doing it as shown below, it is easier to use the function STATE_camera_get_location1() instead
double xyz[3];
DWORD camera=STATE_camera_get_default_camera();
STATE_camera_get_location(camera, &xyz[0], &xyz[1], &xyz[2]);
See also STATE_camera_get_location1()
|