|
Set the location of the camera
Example A:
DWORD camera=STATE_camera_get_default_camera();
STATE_camera_set_location(camera, 10, 20, 30);
Example B:
double x=10,y=20,z=30;
DWORD camera=STATE_camera_get_default_camera();
STATE_camera_set_location(camera, x, y, z);
Example C:
Note that instead of doing it as shown below, it is easier to use the function STATE_camera_set_location1() instead
double xyz[3]={10,20,30};
DWORD camera=STATE_camera_get_default_camera();
STATE_camera_set_location(camera, xyz[0], xyz[1], xyz[2]);
See also STATE_camera_set_location1()
|